Method

POST /message

Parameters

A JSON object with the following properties:

NameDescription
valueThe variable's value.
typeThe value type of the variable. Valid types are String, Integer, Short, Long, Double and Date.

Note: Process instance variables are the global variables of a process instance. Local variables of child executions (such as in subprocesses) are not considered!
|value|The variable's value.|type|The value type of the variable. Valid types are String, Integer, Short, Long, Double and Date.
|Name|Description
|——-
|value|The variable's value.
|type|The value type of the variable. Valid types are String, Integer, Short, Long, Double and Date.
|Name|Description
|——-
|localCorrelationKeys|Local variables used for correlation of executions (process instances) that wait for incoming messages. Has to be a JSON object containing key-value pairs that are matched against local variables during correlation. Each key is a variable name and each value a JSON variable value object with the following properties.

Note: Only variable values that are defined in the execution scope are taken into account, without taking outer (parent) scopes.
|value|The variable's value.|type|The value type of the variable. Valid types are String, Integer, Short, Long, Double and Date.
|Name|Description
|——-
|value|The variable's value.
|type|The value type of the variable. Valid types are String, Integer, Short, Long, Double and Date.
|Name|Description
|——-
|processVariables|A map of variables that is injected into the triggered execution or process instance after the message has been delivered. Each key is a variable name and each value a JSON variable value object with the following properties.

NameDescription
valueThe variable's value. For variables of type Object, the serialized value has to be submitted as a String value.
For variables of type File the value has to be submitted as Base64 encoded string.
typeThe value type of the variable.
valueInfo A JSON object containing additional, value-type-dependent properties.
For serialized variables of type Object, the following properties can be provided:

- objectTypeName: A string representation of the object's type name.
- serializationDataFormat: The serialization format used to store the variable.
For serialized variables of type File, the following properties can be provided:

- filename: The name of the file. This is not the variable name but the name that will be used when downloading the file again.
- mimetype: The MIME type of the file that is being uploaded.
- encoding: The encoding of the file that is being uploaded.
The following property can be provided for all value types:

- transient: Indicates whether the variable should be transient or not. See for more informations.

|value|The variable's value. For variables of type Object, the serialized value has to be submitted as a String value.
For variables of type File the value has to be submitted as Base64 encoded string.
|type|The value type of the variable.|valueInfo| A JSON object containing additional, value-type-dependent properties.
For serialized variables of type , the following properties can be provided:

  • objectTypeName: A string representation of the object's type name.
  • serializationDataFormat: The serialization format used to store the variable.
    For serialized variables of type File, the following properties can be provided:

  • filename: The name of the file. This is not the variable name but the name that will be used when downloading the file again.

  • mimetype: The MIME type of the file that is being uploaded.
  • transient: Indicates whether the variable should be transient or not. See documentation for more informations.
    |Name|Description
    |——-
    |value|The variable's value. For variables of type Object, the serialized value has to be submitted as a String value.
    For variables of type File the value has to be submitted as Base64 encoded string.

|type|The value type of the variable.
|valueInfo| A JSON object containing additional, value-type-dependent properties.
For serialized variables of type Object, the following properties can be provided:

  • objectTypeName: A string representation of the object's type name.
  • serializationDataFormat: The serialization format used to store the variable.
    For serialized variables of type File, the following properties can be provided:

  • filename: The name of the file. This is not the variable name but the name that will be used when downloading the file again.

  • mimetype: The MIME type of the file that is being uploaded.
  • transient: Indicates whether the variable should be transient or not. See for more informations.
    |all|A Boolean value that indicates whether the message should be correlated to exactly one entity or multiple entities. If the value is set to false, the message will be correlated to exactly one entity (execution or process definition). If the value is set to true, the message will be correlated to multiple executions and a process definition that can be instantiated by this message in one go.
    |resultEnabled|A Boolean value that indicates whether the result of the correlation should be returned or not. If this property is set to true, there will be returned a list of message correlation result objects. Depending on the all property, there will be either one ore more returned results in the list.
    The default value is false, which means no result will be returned.

Result

This method returns no content if the property resultEnabled is set to , which is the default value.Otherwise, a JSON array of the message correlation results will be returned. Each message correlation result has the following properties:

Response Codes

Code Media type Description
200 application/json Request successful. The property resultEnabled in the request body was true.
204 Request successful. The property resultEnabled in the request body was false (Default).
400 application/json If no messageName was supplied. If both tenantId and withoutTenantId are supplied. If the message has not been correlated to exactly one entity (execution or process definition), or the variable value or type is invalid, for example if the value could not be parsed to an Integer value or the passed variable type is not supported. See the Introduction for the error response format.

Example

Request Body:

Variant 1:

Variant 2:

Variant 1:

Status 204. No content.

Variant 2: