Hi:
I have following code:

    pdef = Ruote.process_definition do
      sequence :on_error=>:error_report do
        alpha :id => "alpha", :timers => "1s: reminder, 2s:error"
        bravo :id => "bravo"
      end
    end

    @dashboard.register_participant "alpha", TimeoutParticipant
    @dashboard.register_participant "bravo", TimeoutParticipant
    @dashboard.register_participant :reminder do |item|
      puts "reminder handling"
    end
    @dashboard.register_participant :error_report do |item|
      puts "reporting error"
      puts item.error.inspect
    end

my intentions are:
1. in 1 sec send a reminder to alpha
2. in 2 sec, cancel the process and the "error_report" handler comes in to 
do the housekeeping work.

The problem is:
When I say "item.error.inspect" in the error_report handler, it gives 
me: "class"=>"Ruote::ForcedError", "message"=>"error triggered from process 
definition". Which is not helpful when I want to know that the error is 
triggered by a timeout from alpha

btw: I tried 
alpha :id => "alpha", :timers => "1s: reminder, 2s:timeout"
but the process is not interrupted when timeout happened.

Any help is appreciated
Thanks in advance

-- 
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

Reply via email to