cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti and Recursive processes

kkakpati01
Champ in-the-making
Champ in-the-making
Hi Guys,

Thank you so much for answering all my "stupid" questions. I am currently trying to figure out how a recursive process( A process that calls itself as one of the activities) can be modelled and ran in Activiti. Any help would be greatly appreciated and please let me know if this question makes absolutely no sense and I can explain further.

Thanks
K.U.A
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
You can use the CallActivity construct to call other processes (or itself)

kkakpati01
Champ in-the-making
Champ in-the-making
Thanks Joram! I will try it out

pmsevestre
Champ in-the-making
Champ in-the-making
Just an advice: Make sure you put a limit on recursion depth. The easiest way to do this is to pass an instance variable to the called process, which is tested by the called process as the very first thing you do in you process.