@wmfs/tymly-cardscript-plugin
Version:
Plugin which handles interactions to do with Cardscript
54 lines (53 loc) • 1.03 kB
JSON
{
"Comment": "A Clock",
"name": "Five Minute Countdown",
"version": "1.0",
"StartAt": "Wait",
"States": {
"Wait": {
"Type": "Wait",
"Seconds": 1,
"Next": "GenerateTimestamp"
},
"GenerateTimestamp": {
"Type": "Task",
"Resource": "module:timestamp",
"ResultPath": "$.timestamp",
"Next": "UpdateParent"
},
"UpdateParent": {
"Type": "Task",
"Resource": "module:sendTaskHeartbeat",
"Parameters": {
"executionName.$": "$.launcher.executionName",
"result": {
"requiredHumanInput": {
"data": {
"timestamp.$": "$.timestamp"
}
}
}
},
"Next": "Wait",
"Catch": [
{
"ErrorEquals": [
"States.ALL"
],
"Next": "Finish"
}
]
},
"Finish": {
"Type": "Succeed"
}
},
"restrictions": [
{
"roleId": "dm_dataManager",
"allows": [
"*"
]
}
]
}