Skip to content

Commit

Permalink
[Fix 1868] Including usage of $WORKFLOW.prevActionResult (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Feb 27, 2024
1 parent 0c3c09a commit da98be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"start": "start",
"functions": [
{
"name": "printMessage",
"type": "custom",
"operation": "sysout"
"name": "double",
"type": "expression",
"operation": "$WORKFLOW.prevActionResult*2"
},
{
"name": "increase",
Expand All @@ -30,18 +30,11 @@
"actions": [
{
"name":"increase",
"functionRef": {
"refName": "increase"
}
"functionRef": "increase"
},
{
"name": "printAction",
"functionRef": {
"refName": "printMessage",
"arguments": {
"message": ".item"
}
}
"name": "double",
"functionRef": "double"
}],
"end": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void testForEachRest() {
.post("/foreach")
.then()
.statusCode(201)
.body("workflowdata.output", is(Arrays.asList(2, 3, 4)))
.body("workflowdata.output", is(Arrays.asList(4, 6, 8)))
.body("workflowdata.input", nullValue());
}
}

0 comments on commit da98be8

Please sign in to comment.