@@ -675,7 +675,12 @@ To perform a `throw-error` operation, invoke the Zeebe command binding with a `P
675
675
"data": {
676
676
"jobKey": 2251799813686172,
677
677
"errorCode": "product-fetch-error",
678
- "errorMessage": "The product could not be fetched"
678
+ "errorMessage": "The product could not be fetched",
679
+ "variables": {
680
+ "productId": "some-product-id",
681
+ "productName": "some-product-name",
682
+ "productKey": "some-product-key"
683
+ }
679
684
},
680
685
"operation": "throw-error"
681
686
}
@@ -686,6 +691,11 @@ The data parameters are:
686
691
- ` jobKey` - the unique job identifier, as obtained when activating the job
687
692
- ` errorCode` - the error code that will be matched with an error catch event
688
693
- ` errorMessage` - (optional) an error message that provides additional context
694
+ - ` variables` - (optional) JSON document that will instantiate the variables at the local scope of the
695
+ job's associated task; it must be a JSON object, as variables will be mapped in a
696
+ key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
697
+ " b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
698
+ valid argument, as the root of the JSON document is an array and not an object.
689
699
690
700
# #### Response
691
701
0 commit comments