Skip to content

Commit

Permalink
Updating prevActionResult with example reference (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado authored Feb 27, 2024
1 parent 74f95eb commit c79b03e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Besides constants and secrets, you might access contextual information of the ru
* `name`: The name of the running workflow definition
* `instanceId`: The id of the running workflow instance
* `headers`: Optional map containing the headers, if any, of the invocation that started the running workflow instance
* `prevActionResult`: In a `foreach` state, give access the result of the previous loop iteration output.
* `prevActionResult`: In a `foreach` state using multiple actions per loop cycle, give access to the result of the previous action. See link:{kogito_sw_examples_url}/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json#L11[example]
* `identity`: Quarkus security identity

Therefore, the following function, for a serverless workflow definition whose id is `expressionTest`, will append the string `worklow id is expressionTest` to the `message` variable
Expand Down

0 comments on commit c79b03e

Please sign in to comment.