Hi all,
I wrote a simple test workflow that should print "hi everyone!" on
screen every 2 seconds but it doesn't work as expected. Here is the
code:
--8--
require 'rubygems'
require 'ruote'
engine = Ruote::Engine.new(Ruote::Worker.new(Ruote::HashStorage.new()))
engine.register_participant :say_hello do
puts 'hi everyone!'
end
pdef = Ruote.process_definition :name => 'test' do
every '2s' do
say_hello
end
end
wfid = engine.launch(pdef)
engine.wait_for(wfid)
--8--
So when I run it, it just prints "hi everyone!" once and then ruote
quits. Wrapping the "every" expression inside a "sequence" expression
results in the same behaviour. I don't know what I'm doing wrong...
Thanks for the help.
Best regards to all.
Gon.
--
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