Skip to main content
POST
/
task
/
{id}
/
bpmnError
Handle BPMN Error
curl --request POST \
  --url http://{host}:{port}/{contextPath}/task/{id}/bpmnError \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "errorCode": "bpmn-error-543",
  "errorMessage": "anErrorMessage",
  "variables": {
    "aVariable": {
      "value": "aStringValue",
      "type": "String"
    },
    "anotherVariable": {
      "value": true,
      "type": "Boolean"
    }
  }
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The id of the task a BPMN error is reported for.

Body

application/json
errorCode
string | null

An error code that indicates the predefined error. It is used to identify the BPMN error handler.

errorMessage
string | null

An error message that describes the error.

variables
object | null

A JSON object containing variable key-value pairs.

Response

Request successful.