Skip to content

Instantly share code, notes, and snippets.

@tmpvar
Created February 21, 2010 19:51
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 tmpvar/310498 to your computer and use it in GitHub Desktop.
Save tmpvar/310498 to your computer and use it in GitHub Desktop.
simple performer example (Simple Creation)
{
"name" : "Simple Creation",
"id" : "simple.creation",
"description" : "This is a simple example for submitting a new entry, validating the submission, and storing the result",
"actions" : {
"New Entry" : {
"success" : "Validation"
},
"Validation" : {
"failure" : {
"message" : "simple.creation.validation.fail",
"action" : "New Entry"
},
"success" : "Store"
},
"Store" : {
"target" : "simple.creation.store"
"failure" : {
"message" : "simple.creation.store.fail",
"action" : "New Entry"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment