fixed decide to switch task
This commit is contained in:
parent
50aa6a47ec
commit
e5b4adbbb9
|
@ -99,13 +99,12 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"name": "decide_task",
|
||||
"name": "switch_task",
|
||||
"taskReferenceName": "check_for_exactly_one__context",
|
||||
"inputParameters": {
|
||||
"termination": "${lookup_context.output.body.length !== 1 ? 'fail' : 'success'}"
|
||||
"count": "${lookup_context.output.body.length}"
|
||||
},
|
||||
"type": "DECISION",
|
||||
"caseValueParam": "termination",
|
||||
"type": "SWITCH",
|
||||
"decisionCases": {
|
||||
"fail": [
|
||||
{
|
||||
|
@ -125,6 +124,8 @@
|
|||
"startDelay": 0,
|
||||
"optional": false,
|
||||
"asyncComplete": false,
|
||||
"evaluatorType": "javascript",
|
||||
"expression": "$.count !== 1 ? 'fail' : 'success'",
|
||||
"permissive": false
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue