hi all i try to start my process but i got this error(i run my process Successful yesterday but now i got this error).error pic is:
bpmn file is:multi-user-Assignee2.bpmn (5.0 KB)
hi all i try to start my process but i got this error(i run my process Successful yesterday but now i got this error).error pic is:
@Forough, you mentioned script format as Java, but it should be javascript
<bpmn:scriptTask id="GenerateAssignees" name="Generate Assignees1" scriptFormat="java">
<bpmn:incoming>SequenceFlow_0q23sjj</bpmn:incoming>
<bpmn:incoming>SequenceFlow_1d0thao</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1llmycg</bpmn:outgoing>
<bpmn:script>var ArrayList = Java.type("java.util.ArrayList");
var assigneeList= new ArrayList;
assigneeList.add("behrouz");
assigneeList.add("forough");
execution.setVariable("assigneeList", assigneeList);
</bpmn:script>
</bpmn:scriptTask>
Thank you for your help
excuse me when i start process from bellow file for every array item make 2 instance .for example 4 parallel instances created when i run this filemulti-user-approval (3).bpmn (4.8 KB)