06-09-2009 08:38 AM
<task-node name="validsignoff" >
<task name="validwf:validSignOffTask" swimlane="initiator">
</task>
<transition name="approve" to="signoffreceived" >
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="validwf_validid" access="read"/>
<variable name="signOff" access="write" />
<expression>
logger.log("Valid ID = " + validwf_validid);
signOff = false;
if (validwf_validid != null && validwf_validid.length != 0)
signOff = true;
logger.log("ValidSignOFF - signOff = " + signOff);
</expression>
</script>
</action>
</transition>
<transition to="rejected" name="reject"></transition>
</task-node>
<decision name="signoffreceived">
<transition to="validsignoff" name="incompletesignoff">
<condition>#{signOff == false}</condition>
</transition>
<transition to="endreview">
<condition>#{signOff == true}</condition>
</transition>
</decision>
06-09-2009 01:44 PM
06-09-2009 10:02 PM
<decision name="isViewed">
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="wf_reviewerCount" access="read"/>
<expression>logger.log(wf_reviewCount);</expression>
</script>
</action>
</event>
</decision>
That code for Read parameter wf_reviewerCount :mrgreen: Options for access is: Read, Write or both Read and Write (e.x: access="read,write")06-10-2009 03:30 AM
09-11-2009 08:56 AM
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.