@wmfs/tymly
Version:
A framework for building and sharing workflows in Node.js
52 lines (51 loc) • 1.05 kB
JSON
{
"StartAt": "Start",
"States": {
"Start": {
"Type": "Task",
"Resource": "module:sendTaskHeartbeat",
"Parameters": {
"executionName.$": "$.launcher.executionName",
"result": "STARTED"
},
"Next": "Pause"
},
"Pause": {
"Type": "Wait",
"Seconds": 2,
"Next": "FlagParent"
},
"FlagParent": {
"Type": "Task",
"Resource": "module:sendTaskHeartbeat",
"Parameters": {
"executionName.$": "$.launcher.executionName",
"result": "UPDATED"
},
"Next": "PauseAgain"
},
"PauseAgain": {
"Type": "Wait",
"Seconds": 2,
"Next": "LastFlag"
},
"LastFlag": {
"Type": "Task",
"Resource": "module:sendTaskHeartbeat",
"Parameters": {
"executionName.$": "$.launcher.executionName",
"result": "EXPIRED",
"final": true
},
"End": true
}
},
"restrictions": [
{
"roleId": "$authenticated",
"allows": [
"*"
]
}
]
}