On Fri, Apr 16, 2010 at 6:45 PM, Gonzalo Suarez <[email protected]> wrote: > > I got a workflow that at some points calls the error method. This > starts a subprocess that takes care of this exception. At the very end > this subprocess calls _cancel_process. But it's only cancelled the > current subprocess. The main one keeps running...
Hello Gonzalo, I'm sorry, I forgot, but which version of ruote are you running ? > I guess this behaviour is right as I checked with the documentation, > but I don't know what should be the best way to implement the desired > behaviour in ruote. > > The thing is that, whenever something wrong happens during the normal > execution of the main workflow, error method is called. The main > process has the "on_error => "subprocess|participant" thing. > > That subprocess|participant will handle all the errors and as a final > step, will cancel the main process. I've just checked ruote 2.1 and the "cancel_process" implementation is meant to cancel the whole process. If you say to me that 2.1 does not, I will add a test case and fix it. If you're using 0.9, a workaround could be to replace cancel_process by a call to a custom participant that kills the process from outside (engine.cancel_process(wfid)). Thanks for the feedback, -- John Mettraux - http://jmettraux.wordpress.com -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
