Hello!
I have a condition filter inside an action as follows:
<condition>
#{docUtils.getLifeCycleState(currentDocument.getParentRef(),
currentDocument.getSessionId()).equals("enviado")}
</condition>
my bean looks as follows:
public String getLifeCycleState(String docId, String
session) throws ClientException {
CoreSession client =
CoreInstance.getInstance().getSession(session);
DocumentModel doc = client.getDocument(new
IdRef(docId));
String currentLifeCycleState = (String)
doc.getCurrentLifeCycleState();
return currentLifeCycleState;
}
but the log sends the next error:
ERROR [org.nuxeo.ecm.platform.actions.DefaultActionFilter]
evaluation of condition
SeamContext.get("docUtils").getLifeCycleState(currentDocument.getParentRef(),
currentDocument.getSessionId()).equals("enviado") failed:
returning false
What am i doing wrong, could somebody help?
thaks. in advanced
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/