Skip to content

Instantly share code, notes, and snippets.

@kellyp
Created July 25, 2011 01:01
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 kellyp/1103335 to your computer and use it in GitHub Desktop.
Save kellyp/1103335 to your computer and use it in GitHub Desktop.
Ruote.process_definition :name => 'game' do
# the main definition
sequence :tag => 'main', :on_error =>'handle_error' do
participant :ref => 'test'
end
# setup shop by calling alpha and let the logger show the state
define 'handle_error' do
_redo :ref => 'main'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment