Skip to content

Instantly share code, notes, and snippets.

Created August 11, 2011 01:02
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 anonymous/1138684 to your computer and use it in GitHub Desktop.
Save anonymous/1138684 to your computer and use it in GitHub Desktop.
Ruote.process_definition do
sequence do
my_participant 'name' => 'x', 'timeout' => '10d', 'reminder' => '9d'
end
# ...
define 'my_participant' do
concurrence :count => 1 do
sequence :forget => true do
wait '${v:reminder}'
participant :ref => '${v:name}', 'msg' => 'reminder'
end
participant :ref => '${v:name}'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment