cancel
Showing results for 
Search instead for 
Did you mean: 

Confused about multiple Instance Sub-Process and instance local variables

silverhoof1
Champ in-the-making
Champ in-the-making
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?



1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I do not have example. Could you create jUnit test for it please?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin