Skip to content

Instantly share code, notes, and snippets.

@tosch
Created March 17, 2011 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tosch/874013 to your computer and use it in GitHub Desktop.
Save tosch/874013 to your computer and use it in GitHub Desktop.
Ruote.process_definition 'foo' do
sequence do
alpha
concurrence do
alpha
alpha
end
end
end
require 'rubygems'
require 'ruote'
require 'ruote/storage/fs_storage'
engine = Ruote::Engine.new(Ruote::Worker.new(Ruote::FsStorage.new('ruote_work')))
pdef = Ruote.process_definition do
subprocess :ref => 'pdefs/01.rb'
end
engine.register_participant 'alpha' do |wi|
puts wi
end
wfid = engine.launch pdef
engine.wait_for(wfid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment