Hi all,I want to execute an action inside a node and after continue with the workflow cilcle.My node is this.
<node name="Controlla se il template PPT esiste">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
<variable name="templateExist" access="write"></variable>
<variable name="alfrescoPathTriaTemplate" access="read"></variable>
<variable name="companyhome" access="read"></variable>
<expression>
try {
logger.log("node [Controlla se il template PPT esiste], entrato con path ["+alfrescoPathTriaTemplate+"]");
var templateExist = companyhome.childByNamePath(alfrescoPathTriaTemplate);
var exist;
if (templateExist == null){
logger.log("node [Controlla se il template PPT esiste], NON ho trovato nessun template al percorso ["+alfrescoPathTriaTemplate+"]");
exist = false;
} else {
logger.log("node [Controlla se il template PPT esiste], ho trovato il template al percorso ["+alfrescoPathTriaTemplate+"]");
exist = true;
}
templateExist = exist;
executionContext.getToken().signal();
} catch (e){
logger.log("transition [Decidi numero e nome progetto], error durante l'esecuzione dello script " + e);
}
</expression>
</script>
</action>
<transition to="Il template esiste?"></transition>
</node>
The problem is when I try to signal the node, I get this exception:2010-12-16 18:13:16,931 INFO [STDOUT] 18:13:16,931 User:enrico_z DEBUG [repo.jscript.ScriptLogger] transition [Decidi numero e nome progetto], error durante l'esecuzione dello script JavaException: org.jbpm.graph.def.DelegationException: org.jboss.soa.esb.services.jbpm.actionhandlers.EsbActionHandler cannot be cast to org.jbpm.graph.def.ActionHandler
Can you help me please?Thank you.