Fórum
Cannot view asset in workflow
Sreeja Surendranath, modificado 10 Anos atrás.
Cannot view asset in workflow
New Member Postagens: 15 Data de Entrada: 09/01/14 Postagens Recentes
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
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.
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, modificado 10 Anos atrás.
RE: Cannot view asset in workflow (Resposta)
New Member Postagens: 15 Data de Entrada: 09/01/14 Postagens Recentes
The problem was that I used assetEntryLocalService object instead of AssetEntryLocalServiceUtil. Replacing solved the whole issue.
Marco Azzalini, modificado 7 Anos atrás.
RE: Cannot view asset in workflow
Regular Member Postagens: 146 Data de Entrada: 18/11/14 Postagens Recentes
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
bye
Marco
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
bye
Marco
Vlad Gets, modificado 7 Anos atrás.
RE: Cannot view asset in workflow
New Member Postagens: 8 Data de Entrada: 02/11/16 Postagens Recentes
its really working