Created
May 6, 2009 10:10
-
-
Save andrewtimberlake/107469 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
#My conf/participants file | |
module RuoteRest | |
configure do | |
RuoteRest.engine.register_participant :kilroy do | |
puts 'Kilroy was here' | |
end | |
RuoteRest.engine.register_participant :sleepy do | |
puts "sleeping..." | |
sleep 10 | |
puts "waking" | |
end | |
RuoteRest.engine.reload | |
sleep 0.350 | |
# | |
# let the engine reschedule/repause stuff in the expool | |
end | |
end | |
#My process definition | |
class Test0 < OpenWFE::ProcessDefinition | |
sequence do | |
participant :ref => "kilroy" | |
participant :ref => "sleepy" | |
participant :ref => "kilroy" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment