12-01-2010 02:54 AM
<start-state name="start">
<task name="agfo:submitForReviewTask3">
<event type="task-end">
<script>
<variable name="task_comment" access="read,write"/>
<variable name="task_id" access="read,write"/>
<variable name="requiredApprovePercent" access="read,write"/>
<expression>
if(taskInstance.comments.get(0).message != null) task_comment = taskInstance.comments.get(0).message;
if(taskInstance.id != null) task_id = taskInstance.id;
</expression>
</script>
</event>
</task>
<event type="node-leave">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
…
var configNodeRef = bpm_package.children[0].properties["aginv:ChosenConfigNodeRef"];
var config = search.findNode(configNodeRef);
requiredApprovePercent = config.properties["agfo:wfRequiredApprovalPercent"];
…
</script>
</action>
</event>
<transition to="fork"/>
</start-state>
<decision name="reviewDecision">
<event type="node-enter">
<script>
<expression>
…
System.out.println("requiredApprovePercent= " + requiredApprovePercent);
…
</expression>
</script>
</event>
<transition to="a">
<condition>#{………….}</condition>
</transition>
<transition to="b"/>
</decision>
12-01-2010 05:08 AM
12-01-2010 09:53 AM
05-08-2011 01:23 PM
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.