John,
> > 1. Don't know how to pass desired wait interval to "wait" from > > "participant". May be process variables could be utilized for this > > goal? > > 2. Don'k know how to get information about intercepted exception in > > the error handler subprocess\participant. Is it possible? > > It was not really possible, but I have added that for you (for all the ruote > users) : > > http://github.com/jmettraux/ruote/commit/00588816dc8d0221e1f1f7ca5820... > John, thank you! This potentially solves my request. I've build a quick test (http://gist.github.com/372307): --- pdef = Ruote.process_definition :name => 'test' do sequence do external_work :tag => 'tag1', :on_error => 'handle_error' echo 'exiting...' end define 'handle_error' do trace echo 'sleeping for ${f:sleep_for}..' wait "${f:sleep_for}" echo 'redoing...' _redo :ref => 'tag1' end end -- This process should re-apply desired expression after a sleeping. But it didn't. Here is my output: -- External work started... #<Ruote::Workitem:0x99114d8 @h={"fields"=>{"counter"=>1, "sleep_for"=>"2s", "__error__"=>[{"engine_id"=>"engine", "wfid"=>"20100420-bejutatzumu", "sub_wfid"=>nil, "expid"=>"0_1_0"}, "2010-04-20 11:21:22.605815 UTC", "RedoException", "RedoException"], "params"=>{"ref"=>"trace"}, "dispatched_at"=>"2010-04-20 11:21:22.649120 UTC"}, "fei"=>{"engine_id"=>"engine", "wfid"=>"20100420-bejutatzumu", "sub_wfid"=>"037942411000", "expid"=>"0_0_0"}, "participant_name"=>"trace"}> sleeping for 2s.. redoing... exiting... -- What could be wrong here? Regarding to other things - let me to get back later, due to some load on work. Best regards, Oleg -- 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
