Hello,
this was requested by Hartog (although not sure if that's exactly what he
wanted).
When a flow is launched a simple UTC date string is set in its workitems:
Here is a sample usage:
---8<---
161213 メ ~/w/ruote (master) 秋 cat launched_at.rb
require 'ruote'
ruote = Ruote::Dashboard.new(Ruote::Worker.new(Ruote::HashStorage.new))
#ruote.noisy = true
ruote.register_participant 'alpha' do |workitem|
puts
puts "flow: #{workitem.wfid}"
puts "launched at: #{workitem.launched_at}"
end
wfid = ruote.launch(Ruote.define { alpha })
ruote.wait_for(wfid)
161215 メ ~/w/ruote (master) 秋 bxr launched_at.rb
flow: 20120804-0712-binasoje-kiwogata
launched at: 2012-08-04 07:12:23.411238 UTC
161223 メ ~/w/ruote (master) 秋
--->8---
The commit:
https://github.com/jmettraux/ruote/commit/ceb9c1d2b16b2c38d5abe3b417557ef2e621ec65
Best regards,
--
John Mettraux - http://lambda.io/jmettraux
--
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