On Friday, June 7, 2013 12:39:42 AM UTC+3, John Mettraux wrote: > > > On Thu, Jun 06, 2013 at 09:33:02AM -0700, Or Cohen wrote: > > > I might be way off, and the first workflow is the way to go. :) > > I'd go for something like: > > ```ruby > Ruote.define do > sequence do > resource1 :action => 'suspend' > resource2 :action => 'suspend' > sequence :on_error => 'x' do > do_some_stuff > end > resource1 :action => 'resume' > resource2 :action => 'resume' > end > end > ``` >
I agree, I'm starting to get the feel for it now. Still need to get used to describing flows like this. Thank you very much, this has been very helpful. -- -- 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 --- You received this message because you are subscribed to the Google Groups "ruote" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
