On Thu, Aug 05, 2010 at 06:21:59AM -0700, cappelaere wrote:
> 
> Sorry about all those questions!
> Trying to update my SqlHistory...
> 
> How do you find out that a workflow terminated successfully from the
> messages sent to storage_history?
> There used to be an explicit "terminated" event but it does not seem
> to be generated anymore.
> 
> Do I need to infer this from last "dispatched" action?

Hello,

no worries.

Yes there is a "terminated" message. Depending on the participant 
implementation (and of do_not_thread), the "dispatched" message of the last 
participant might appear right after the "dispatched" (and "received" message).

If you add this line

  p @engine.storage.get_many('history').collect { |msg| msg['action'] }

there

  
http://github.com/jmettraux/ruote/blob/ruote2.1/test/functional/ft_36_storage_history.rb#L34

you'll see something like

  ["participant_registered", "launch", "launch", "receive", "dispatched", 
"apply", "dispatch", "reply", "apply", "reply", "terminated", "apply", 
"dispatch", "reply", "apply", "reply", "terminated", "receive", "dispatched"]


Best regards,

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

Reply via email to