Skip to main content
POST
/
message
curl --request POST \
--url http://{host}:{port}/{contextPath}/message \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"messageName": "aMessage",
"businessKey": "aBusinessKey",
"correlationKeys": {
"aVariable": {
"value": "aValue",
"type": "String"
}
},
"processVariables": {
"aVariable": {
"value": "aNewValue",
"type": "String",
"valueInfo": {
"transient": true
}
},
"anotherVariable": {
"value": true,
"type": "Boolean"
}
}
}'
[
{
"resultType": "ProcessDefinition",
"execution": null,
"processInstance": {
"links": [],
"id": "aProcInstId",
"definitionId": "aProcDefId",
"businessKey": "aKey",
"caseInstanceId": "aCaseInstId",
"ended": false,
"suspended": false,
"tenantId": "aTenantId"
}
}
]

Authorizations

Authorization
string
header
required

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

Body

application/json
messageName
string | null

The name of the message to deliver.

businessKey
string | null

Used for correlation of process instances that wait for incoming messages. Will only correlate to executions that belong to a process instance with the provided business key.

tenantId
string | null

Used to correlate the message for a tenant with the given id. Will only correlate to executions and process definitions which belong to the tenant. Must not be supplied in conjunction with a withoutTenantId.

withoutTenantId
boolean | null
default:false

A Boolean value that indicates whether the message should only be correlated to executions and process definitions which belong to no tenant or not. Value may only be true, as false is the default behavior. Must not be supplied in conjunction with a tenantId.

processInstanceId
string | null

Used to correlate the message to the process instance with the given id.

correlationKeys
object | null

Used for correlation of process instances that wait for incoming messages. Has to be a JSON object containing key-value pairs that are matched against process instance variables during correlation. Each key is a variable name and each value a JSON variable value object with the following properties.

localCorrelationKeys
object | null

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.

processVariables
object | null

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.

processVariablesLocal
object | null

A map of local variables that is injected into the execution waiting on the message. Each key is a variable name and each value a JSON variable value object with the following properties.

processVariablesToTriggeredScope
object | null

A map of variables that is injected into the new scope triggered by message correlation. Each key is a variable name and each value a JSON variable value object with the following properties.

all
boolean | null
default:false

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
boolean | null
default:false

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.

variablesInResultEnabled
boolean | null
default:false

A Boolean value that indicates whether the result of the correlation should contain process variables or not. The parameter resultEnabled should be set to true in order to use this it.

The default value is false, which means the variables will not be returned.

Response

Request successful. The property resultEnabled in the request body was true. The variables property is only returned, if the property variablesInResultEnablewas set totrue` in the request.

resultType
enum<string> | null

Indicates if the message was correlated to a message start event or an intermediate message catching event. In the first case, the resultType is ProcessDefinition and otherwise Execution.

Available options:
Execution,
ProcessDefinition
processInstance
object
execution
object
variables
object | null

This property is returned if the variablesInResultEnabled is set to true. Contains a list of the process variables.