-
1. Re: newbie - how to set parent state from child fork flow
salaboy21 Apr 11, 2008 5:43 PM (in response to nathancoast)do you look at
http://wiki.jboss.org/wiki/en/MultiChoiceForkAH?action=e&windowstate=normal&mode=view
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.. -
2. Re: newbie - how to set parent state from child fork flow
nathancoast Apr 12, 2008 3:54 AM (in response to nathancoast)thanks salaboy,
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?
cheers,
Nathan -
3. Re: newbie - how to set parent state from child fork flow
nathancoast Apr 13, 2008 2:33 PM (in response to nathancoast)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.
thanks,
Nathan -
4. Re: newbie - how to set parent state from child fork flow
salaboy21 Apr 13, 2008 2:52 PM (in response to nathancoast)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..
Thanks! -
5. Re: newbie - how to set parent state from child fork flow
kukeltje Apr 14, 2008 5:05 AM (in response to nathancoast)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.