Loop Gateway and Branch

Avatar

Avatar

_jerome_dinnat_

Avatar

_jerome_dinnat_

_jerome_dinnat_

20-11-2008

Hi,



In a process, I designed a loop. In this loop, there is a gateway with two branches.



I would like to know if each branch share the same instance of process variables.



I m' not sure to be clear.



Thanks

Replies

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

20-11-2008

Yes they do.



Jasmin

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

20-11-2008

The gateway branches still execute in the same process instance and the variable scope is at the process level.



Jasmin

Avatar

Avatar

_jerome_dinnat_

Avatar

_jerome_dinnat_

_jerome_dinnat_

20-11-2008

So I must use subprocess if I don't want to have issue with my variables ?



Thanks

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

20-11-2008

Or use different variables for you branches.



Jasmin

Avatar

Avatar

_jerome_dinnat_

Avatar

_jerome_dinnat_

_jerome_dinnat_

20-11-2008

Ok but if a branch A use a form variable for example and is not yet completed but the branch B is completed in the first turn of the loop.



The second begin and the branch A will take the same form variable that previously so there is an issue no ?



Thanks for your help

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

20-11-2008

Yes, you could run into issues.



Jasmin

Avatar

Avatar

_jerome_dinnat_

Avatar

_jerome_dinnat_

_jerome_dinnat_

20-11-2008

Ok, so I must continue to use subprocess and so lose the ability for my end users to track the entire process.



Thanks

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

20-11-2008

Unfortunately to be on the safe side you might have to do that.



Jasmin