Hi list (Hi John),

Is there an API for logging/tracing every step of process execution? I
would like to either generate nice console output or to  keep track of
process status for web display.

I've tried to wrap my head around the services/tracking facilities in
ruote, but cannot seem to make sense of it. Some of the code I am sure
doesn't work (anymore), while the rest just puzzles me. Where should I
look for a working example?

(from ci.rb, doesn't do anything apparently)
engine.add_service(:s_logger, Ruote::TestLogger)
#engine.context[:noisy] = true

(from barley.rb, should work but looks ugly to me)
ENGINE.register_participant('trace') do |workitem|
  (workitem.fields['trace'] ||= []) << [
    Time.now.strftime('%Y-%m-%d %H:%M:%S'),
    workitem.fields['next'],
    workitem.fields['task'] ]
end

best regards,
kaspar

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