Skip to content

Commit

Permalink
[Fix #3694] Modifying for each example (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Oct 10, 2024
1 parent 7f4f4f7 commit d25f1f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"name": "increase",
"type": "expression",
"operation": ".item + 1"
"operation": "$item + 1"

}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static Workflow getWorkflow() {
// then for each element in input names concatenate it with that message
.next(forEach(".names").loopVar("name").outputCollection(".messages")
// jq expression that suffix each name with the message retrieved from the file
.action(call(expr("concat", ".name+.adviceMessage")))
.action(call(expr("concat", "$name+.adviceMessage")))
// only return messages list as result of the flow
.outputFilter("{messages}"))
.end().build();
Expand Down

0 comments on commit d25f1f4

Please sign in to comment.