do you look at
I think this may be what are you looking for....
Let me know if it works for you..
Note the Notice part at the end..
I'll look into this today and let you know how I get on. Is there an index of these jbpm examples or howtos somewhere?
I've had a look at the MultiChoiceForkAH but unfortunately can't see how this helps me modify the parent status based on a the outcome of a child (forked) task.
From the code, I see how to programatically create new child threads of execution (tokens) - one for each approver. Thanks for that.
The piece of the jigsaw I'm missing is how to "succeed" the entire workflow only if all child flows "approve", and "fail" if a single child flow "rejects". In addition, when there is a single reject, all other pending approval tasks should be canceled (is this delete).
Still very confused. Unsure if best solution is to create a single state node with multiple task nodes or to create multiple forked child nodes each with a single task node.
Let me think about it...
do you have some processdefinition.xml to show me your process or the process image?
To be sure to understand what are you really doing..
all other pending approval tasks should be canceled (is this delete).
Put an actionhandler e.g. on a leaving transition that looks up all other 'similar' taskintances and cancel them.