@wmfs/tymly
Version:
A framework for building and sharing workflows in Node.js
39 lines (38 loc) • 755 B
JSON
{
"StartAt": "LongRunningTask",
"States": {
"LongRunningTask": {
"Type": "Wait",
"Seconds": 2,
"Next": "Timestamp"
},
"Timestamp": {
"Type": "Task",
"Resource": "module:timestamp",
"ResultPath": "$.timestamp",
"Next": "FlagParent"
},
"FlagParent": {
"Type": "Task",
"Resource": "module:sendTaskSuccess",
"Parameters": {
"executionName.$": "$.launcher.executionName",
"result.$": "$.timestamp"
},
"Next": "TimestampOut"
},
"TimestampOut": {
"Type": "Pass",
"InputPath": "$.timestamp",
"End": true
}
},
"restrictions": [
{
"roleId": "$authenticated",
"allows": [
"*"
]
}
]
}