Skip to content

Instantly share code, notes, and snippets.

/t.rb

Created February 28, 2010 23:43
Show Gist options
  • Select an option

  • Save anonymous/317928 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/317928 to your computer and use it in GitHub Desktop.
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
engine.context.logger.noisy = true
wfid = engine.launch(pdef)
#engine.wait_for(wfid)
sleep 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment