Skip to content

Instantly share code, notes, and snippets.

@andrewtimberlake
Created May 6, 2009 10:10
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 andrewtimberlake/107469 to your computer and use it in GitHub Desktop.
Save andrewtimberlake/107469 to your computer and use it in GitHub Desktop.
#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