留言板

Cannot view asset in workflow

Sreeja Surendranath,修改在10 年前。

Cannot view asset in workflow

New Member 帖子: 15 加入日期: 14-1-9 最近的帖子
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,修改在10 年前。

RE: Cannot view asset in workflow (答复)

New Member 帖子: 15 加入日期: 14-1-9 最近的帖子
The problem was that I used assetEntryLocalService object instead of AssetEntryLocalServiceUtil. Replacing solved the whole issue. emoticon
thumbnail
Marco Azzalini,修改在7 年前。

RE: Cannot view asset in workflow

Regular Member 帖子: 146 加入日期: 14-11-18 最近的帖子
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,修改在7 年前。

RE: Cannot view asset in workflow

New Member 帖子: 8 加入日期: 16-11-2 最近的帖子
its really working