@wmfs/tymly
Version:
A framework for building and sharing workflows in Node.js
29 lines • 544 B
JSON
{
"Comment": "A simple two-state machine, which will fail on the second state",
"StartAt": "Hello",
"States": {
"Hello": {
"Type": "Task",
"Resource": "module:hello",
"Next": "Stuttery"
},
"Stuttery": {
"Type": "Task",
"Resource": "module:stuttery",
"Next": "IT-LIVES"
},
"IT-LIVES": {
"Type": "Task",
"Resource": "module:itLives",
"End": true
}
},
"restrictions": [
{
"roleId": "$authenticated",
"allows": [
"*"
]
}
]
}