Created
March 17, 2011 08:38
-
-
Save tosch/874013 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ruote.process_definition 'foo' do | |
sequence do | |
alpha | |
concurrence do | |
alpha | |
alpha | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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