12-16-2010 12:21 PM
<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>
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
01-27-2011 12:04 PM
02-17-2011 12:59 AM
03-02-2011 08:37 AM
I am not sure about the way you are doing.
But transition from one node to another can be achived easily by using action classes.
Better you go for that approch.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.