fixed decide to switch task

This commit is contained in:
Marco Lettere 2024-06-06 11:02:08 +02:00
parent 50aa6a47ec
commit e5b4adbbb9
1 changed files with 5 additions and 4 deletions

View File

@ -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
},
{