12-09-2014 05:12 AM
<startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="alvexwfat:startTask">
<!– Velo_Update Sumit.Purohit@pnnl.gov –>
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
execution.setVariable('alvexwfat_velophaseid', task.getVariableLocal('alvexwfat_velophaseid'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('alvexwfat_velophaseid', task.getVariableLocal('alvexwfat_velophaseid'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</startEvent>
<subProcess id="subprocess1" name="">
<multiInstanceLoopCharacteristics isSequential="false" activiti:collection="${alvexwfat_subprocessKinds}" activiti:elementVariable="alvexwfat_subprocessKind">
<completionCondition>${alvexwfat_mainTaskDone}</completionCondition>
</multiInstanceLoopCharacteristics>
<exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
<userTask id="alfrescoUsertask1" name="Perform a Execute task" activiti:assignee="${executeTaskAssignee}" activiti:formKey="alvexwfat:executeTask">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>
task.setVariableLocal('alvexwfat_testval','bla bla again testval');
task.setVariableLocal('alvexwfat_velophaseid', execution.getVariable('alvexwfat_velophaseid'));
</activiti:string>
</activiti:field>
</activiti:taskListener>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>task.setVariableLocal('alvexwfat_velophaseid', "exectask phaseid complete");
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
alvexwfat_testval
""
alvexwfat_velophaseid
""
12-09-2014 07:13 AM
12-11-2014 12:51 AM
12-11-2014 06:57 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.