bull-stepfunction
Version:
run bullQ job like AWS stepfunction
32 lines (30 loc) • 854 B
JSON
{
"StartAt": "GetValue",
"States": {
"GetValue":{
"Type": "Map",
"Next": "Filter",
"ItemsPath":"$.keys",
"Iterator": {
"StartAt": "Fetch",
"States": {
"Fetch": {
"Type": "Task",
"Resource": "GetValue",
"Next": "ConvertToInt"
},
"ConvertToInt": {
"Type": "Task",
"Resource": "ConvertValue",
"End":true
}
}
}
},
"Filter":{
"Type": "Task",
"Resource": "FilterValues",
"End": true
}
}
}