Skip to content

Instantly share code, notes, and snippets.

@kellyp

kellyp/gist:1103269

Created Jul 25, 2011
Embed
What would you like to do?
[
"process_definition",
{
"name":"error retry all"
},
[
[
"sequence",
{
"tag":"main",
"on_error":"handle_error"
},
[
[
"concurrence",
{
},
[
[
"sequence",
{
},
[
[
"participant",
{
"composition_phase_id":32,
"command":"/error/error",
"ref":"test"
},
[
]
]
]
]
]
]
]
],
[
"define",
{
"name":"handle_error"
},
[
[
"sequence",
{
},
[
[
"sequence",
{
},
[
[
"set",
{
"value":"retry all",
"field":"fail_type"
},
[
]
],
[
"participant",
{
"ref":"on_error"
},
[
]
],
[
"set",
{
"value":true,
"field":"__retry__"
},
[
]
],
[
"_redo",
{
"ref":"main",
"unless":"$
{
f:__error__
}
== nil or $
{
f:__retry__
}
== false"
},
[
]
]
]
],
[
"concurrence",
{
},
[
[
"sequence",
{
},
[
[
"set",
{
"value":"There was an error!",
"field":"body"
},
[
]
],
[
"participant",
{
"composition_phase_id":30,
"command":"/irc/notify",
"ref":"irc"
},
[
]
]
]
]
]
]
]
]
]
]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.