Thanks again. That worked exactly like we wanted.
Doug
On Mar 23, 2012, at 3:46 PM, John Mettraux wrote:
>
> On Fri, Mar 23, 2012 at 09:38:11AM -0500, Doug Bryant wrote:
>>
>> One other question. Is there a way to access the history of a workflow
>> process. I saw Ruote::StorageHistory but not quite sure if that will work.
>> If on the previous example I append the two lines
>>
>> history = dashboard.context.history.by_process(wfid)
>>> history.each{|h| puts h["participant_name"]}
>>
>> (...)
>>
>> It looks like the execution path through ruote, but includes lines such as
>> concurrence (blank line - no participant name). Looking more for a result
>> like %w{con1 con2 print_messages}
>
> Hello Doug,
>
> yes, this history implementation records every event in the engine.
>
> You could write:
>
> ---8<---
> history = dashboard.history.by_process(wfid)
> p history.select { |h|
> h['action'] == 'dispatched'
> }.collect { |h|
> h['participant_name']
> }
> --->8---
>
> That'll only display the participant for 'dispatched' messages (emitted by
> the engine we it has successfully handed a workitem to a participant).
>
> You could also replace the history by your own implementation only keeping
> track of the events you care for.
>
>
>> Thanks for your work on Ruote.
>
> You're welcome. Best regards,
>
> --
> John Mettraux - http://lambda.io/processi
>
> --
> 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 "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