Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Loop Gateway and Branch

Avatar

Former Community Member
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
8 Replies

Avatar

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



Jasmin

Avatar

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



Thanks

Avatar

Level 10
Or use different variables for you branches.



Jasmin

Avatar

Former Community Member
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

Level 10
Yes, you could run into issues.



Jasmin

Avatar

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



Thanks

Avatar

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



Jasmin