> ddeng <[email protected]> wrote: > > > > I have a workflow like: > >sequence :on_cancel=>:report_error do > > alice > > bob > >end > > > >I want report_error to be called if alice or bob fails to do the job. Both > >alice and bob are storage_participant. I only found > >StorageParticipant#proceed method, but is there a cancel method for the > >workitem? > >So I can have something like: > >workitem.cancel if not alice.do(workitem) > On Mon, Jun 18, 2012 at 03:50:04PM -0400, Danny Fullerton wrote: > > You should find what you need in the participant, not the storage. > > http://ruote.rubyforge.org/implementing_participants.html#cancel
Hello Deng (and Danny), I recently did some work about propagating more easily errors happening in remote participants to the engine/workers: https://github.com/jmettraux/ruote/commit/2e752ebb4d29c2621ca19e6cf8cc9cd3cf38e74a I'll cook up something in the Receiver/StorageParticipant that leverages that. I hope to be done with this work by tomorrow, I'll notify you about it in this mailing list thread. Stay tuned. Best regards, -- John Mettraux - http://lambda.io/jmettraux -- 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
