Skip to content

Commit

Permalink
Compatible DoWhile task in conductor 2.X (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: Jozef Volak <[email protected]>
  • Loading branch information
Jozefiel and Jozef Volak authored Apr 3, 2023
1 parent 58bdf8d commit fa86100
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo-workflows/workflows/Device_memory_monitoring.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"inputParameters": {
"lambdaValue": "${Netconf_read_structured_device_dataRefName_EZW5.output.response_body.memory-summary.nodes.node}",
"iterator": "${LoopTask.output.iteration}",
"scriptExpression": "if($.iterator == null){\n return $.lambdaValue[0]\n} else {\n return $.lambdaValue[$.iterator];\n}"
"scriptExpression": "return $.lambdaValue[($.iterator-1).toString()]"
},
"type": "LAMBDA",
"decisionCases": {},
Expand Down
2 changes: 1 addition & 1 deletion demo-workflows/workflows/Install_all_from_inventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"inputParameters": {
"lambdaValue": "${INVENTORY_get_pages_cursorsRefName_iHgJ.output.page_ids}",
"iterator": "${LoopTask.output.iteration}",
"scriptExpression": "if($.iterator == null){\n return $.lambdaValue[\"0\"]\n} else {\n return $.lambdaValue[$.iterator.toString()];\n}"
"scriptExpression": "return $.lambdaValue[($.iterator-1).toString()]"
},
"type": "LAMBDA",
"decisionCases": {},
Expand Down
2 changes: 1 addition & 1 deletion demo-workflows/workflows/Uninstall_all_from_inventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"inputParameters": {
"lambdaValue": "${INVENTORY_get_pages_cursorsRefName_iHgJ.output.page_ids}",
"iterator": "${LoopTask.output.iteration}",
"scriptExpression": "if($.iterator == null){\n return $.lambdaValue[\"0\"]\n} else {\n return $.lambdaValue[$.iterator.toString()];\n}"
"scriptExpression": "return $.lambdaValue[($.iterator-1).toString()]"
},
"type": "LAMBDA",
"decisionCases": {},
Expand Down

0 comments on commit fa86100

Please sign in to comment.