Forums de discussion

Cannot view asset in workflow

Sreeja Surendranath, modifié il y a 10 années.

Cannot view asset in workflow

New Member Publications: 15 Date d'inscription: 09/01/14 Publications récentes
I created a portlet with workflow on liferay portal CE 6.2.0 and added single approver workflow to it after deployment. It works successfully and i can view notification, assign to someone and approve it or reject. But when I click on view button it says "asset not found" .

My asset entry is as below

assetEntryLocalService.updateEntry(userId, timesheet.getGroupId(),
				date, date, Timesheet.class.getName(),
				timesheet.getPrimaryKey(), timesheet.getUuid(), 0,
				serviceContext.getAssetCategoryIds(),
				serviceContext.getAssetTagNames(),true, null, null, null,
				null, ContentTypes.TEXT_HTML, timesheet.getProject(),
				timesheet.getTaskType(), timesheet.getProject() + " : "
						+ timesheet.getTaskType(), null, 0, 0, 0, false);


Here I set visible to true but in the database I could find that it get updated as false and hence I get this error. What may be the cause?
Before I used shorter signature of updateEntry method, but once I got this issue, I tried it with this full signature method.
Sreeja Surendranath, modifié il y a 10 années.

RE: Cannot view asset in workflow (Réponse)

New Member Publications: 15 Date d'inscription: 09/01/14 Publications récentes
The problem was that I used assetEntryLocalService object instead of AssetEntryLocalServiceUtil. Replacing solved the whole issue. emoticon
thumbnail
Marco Azzalini, modifié il y a 7 années.

RE: Cannot view asset in workflow

Regular Member Publications: 146 Date d'inscription: 18/11/14 Publications récentes
Hi Sreeja!
You saved my life!!! Many many thanks!! :-)
I was getting crazy on the same problem and I spent two days trying to figure out what was the cause, also because the problem was affecting only the Test enviroment... on my development pc everything has always worked properly also with the update call from assetEntryLocalService class. Very, very strange emoticon

bye
Marco
Vlad Gets, modifié il y a 7 années.

RE: Cannot view asset in workflow

New Member Publications: 8 Date d'inscription: 02/11/16 Publications récentes
its really working