-
1. Re: How to model hierarchy recursion process ?
insanely.freak Jan 8, 2009 1:40 AM (in response to joy_wind)Hi Joy,
I saw your post regarding requirement for hierarchical structure workflow. Even I have a similar requirement. I tried implementing it using a task node and a decision node to loop back to task node, but it gives a StackOverFLow exception.
I figured out from few posts in this forum that it is known issue in JBPM. It would be great if you could post what approach or design did you use to implement the above pattern.
Thanks in advance -
2. Re: How to model hierarchy recursion process ?
kukeltje Jan 8, 2009 7:28 AM (in response to joy_wind)Recusrion is not supported, but as you can see in 'their' complicated view, they use more atomic operations to achieve this. jBPM supoports almost all of these atomic operations and with e.g. a decision you can create a loop (I know looping is different, but I think a loop is better here than recursion). The stack overflow occurs if you finish the task and not save it and close the context. Otherwise it should work., I did this myself several times. In a custom assignmenthandler you can check which person/role should be the next one to act upon the task. Works for me.