Skip to content

Instantly share code, notes, and snippets.

@irfn
Created March 15, 2010 09:00
Show Gist options
  • Save irfn/332638 to your computer and use it in GitHub Desktop.
Save irfn/332638 to your computer and use it in GitHub Desktop.
#All the REST POST calls may resturn a 422..
test_pdef = Ruote.process_definition :name => 'test' do
cursor do
sequence do
participant :alpha #a user intervention that is like a confirmation
participant :beta # no user intervation required. in my case just a REST call(POST)
rewind :if => '${422_etc_in_previous_step}'
participant :gamma # no user intervation required. based on return of :beta pass arguments to :gamma
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment