Forums de discussion

Workflow : The asset could not be found.

thumbnail
Alix Boc, modifié il y a 9 années.

Workflow : The asset could not be found.

New Member Publications: 11 Date d'inscription: 13/10/14 Publications récentes
Bonjour,

Je suis en train de tester le portlet SloganContest décrit dans "Liferay In Action".
Je lui applique le worklow par défaut "Single Approver".

Tout fonctionne correctement, sauf quand je veux cliquer sur view dans la page "My Worklow Tasks".
Le message "The asset could not be found." apparait.

Mon idée est que je devrais associer un jsp à cette page dans la classe SloganContestEntryAssetRenderer, mais je ne trouve pas de documentation m'expliquant cela. J'imagine que je devrais avoir une page par défaut quand même.

Si quelqu'un avait une petite idée où une direction à suivre ce serait très apprécié.

Merci de votre aide.


Version de Liferay/Tomcat : Liferay-portal-6.2-ce-ga2/tomcat-7.0.42
john liu, modifié il y a 9 années.

RE: Workflow : The asset could not be found.

New Member Publications: 2 Date d'inscription: 05/02/15 Publications récentes
I met the same problem。
Montej Shah, modifié il y a 8 années.

RE: Workflow : The asset could not be found.

New Member Publications: 17 Date d'inscription: 05/11/14 Publications récentes
i have fixed this issue by oveerride below method.
public class StoryAssetRenderer extends BaseAssetRenderer {
private Story _story;
private static String STORY_PORTLET_ID = "story_WAR_Storyportlet";

public int getAssetRendererType() {
if (_story.getVersion() == 0) {
return AssetRendererFactory.TYPE_LATEST;
} else {
return AssetRendererFactory.TYPE_LATEST_APPROVED;
}
}
}