I have a process that includes a multiple instance sub-process (parallel execution).
I want to have two variables in each of the instance so in the process definition I created a script node in the sub-process:
The script node is like this:
execution.createVariableLocal('needEscalate',false);
execution.createVariableLocal('finalPerson',null);
then another sequential multiple instance human task node do the approval work and change the 'finalPerson' variable and 'needEscalate' variable value if needed.
What I found was, the variable is not isolated from each sub-process instance as I thought, seems those two variable is not defined at sub-process instance level.
Any body have an example how to define and access variable for each multiple instance sub-process instance?