UNPKG

@wmfs/statebox

Version:

Orchestrate Node functions using Amazon States Language

27 lines 560 B
{ "Comment": "A simple three-state machine, which will fail on the second state", "StartAt": "Hello", "States": { "Hello": { "Type": "Task", "Resource": "module:hello", "Next": "Failure" }, "Failure": { "Type": "Task", "Resource": "module:failure", "Catch": [ { "ErrorEquals":["States.EXPLODING_PIES"], "Next":"NeverRuns" } ], "Next": "NeverRuns" }, "NeverRuns": { "Type": "Task", "Resource": "module:world", "End": true } } }