@wmfs/tymly
Version:
A framework for building and sharing workflows in Node.js
38 lines (37 loc) • 733 B
JSON
{
"StartAt": "Start",
"States": {
"Start": {
"Type": "Task",
"Resource": "module:launchStateMachine",
"ResourceConfig": {
"stateMachine": "tymlyTest_launchedSendsResultToParent"
},
"ResultPath": "$.launched",
"Next": "WaitForExternalPrompt"
},
"WaitForExternalPrompt": {
"Type": "Task",
"Resource": "module:awaitingExternalInput",
"ResourceConfig": {
"failAfter": 1
},
"Next": "SomethingElse"
},
"SomethingElse": {
"Type": "Pass",
"Result": {
"good": "stuff"
},
"End": true
}
},
"restrictions": [
{
"roleId": "$authenticated",
"allows": [
"*"
]
}
]
}