@wmfs/tymly
Version:
A framework for building and sharing workflows in Node.js
39 lines (38 loc) • 777 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": {
"continueAfter": 1
},
"ResultPath": "$.launchedResult",
"Next": "SomethingElse"
},
"SomethingElse": {
"Type": "Pass",
"Result": {
"good": "stuff"
},
"End": true
}
},
"restrictions": [
{
"roleId": "$authenticated",
"allows": [
"*"
]
}
]
}