Skip to content

Commit

Permalink
Merge pull request #4477 from scott-brady/feature/3639-zeebe-command-…
Browse files Browse the repository at this point in the history
…throw-error-variables

feat(bindings-zeebe-command): Add support for passing variables to throw-error operation. (#3639)
  • Loading branch information
hhunter-ms authored Jan 6, 2025
2 parents 7ed0652 + 03be3d5 commit 46f78a7
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,12 @@ To perform a `throw-error` operation, invoke the Zeebe command binding with a `P
"data": {
"jobKey": 2251799813686172,
"errorCode": "product-fetch-error",
"errorMessage": "The product could not be fetched"
"errorMessage": "The product could not be fetched",
"variables": {
"productId": "some-product-id",
"productName": "some-product-name",
"productKey": "some-product-key"
}
},
"operation": "throw-error"
}
Expand All @@ -686,6 +691,11 @@ The data parameters are:
- `jobKey` - the unique job identifier, as obtained when activating the job
- `errorCode` - the error code that will be matched with an error catch event
- `errorMessage` - (optional) an error message that provides additional context
- `variables` - (optional) JSON document that will instantiate the variables at the local scope of the
job's associated task; it must be a JSON object, as variables will be mapped in a
key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
"b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
valid argument, as the root of the JSON document is an array and not an object.

##### Response

Expand Down

0 comments on commit 46f78a7

Please sign in to comment.