I want to send a message, first of all, the process fires two nested sub-process.
This is my task ouput
/engine-rest/task/
[
{
"id": "8ddeffc5-d51a-11eb-9777-0242ac160002",
"name": "Generar Lista",
"assignee": null,
"created": "2021-06-24T15:32:39.100-0300",
"due": null,
"followUp": null,
"delegationState": null,
"description": null,
"executionId": "8dded9b0-d51a-11eb-9777-0242ac160002",
"owner": null,
"parentTaskId": null,
"priority": 50,
"processDefinitionId": "priceEditorProcess:1:703bb8ba-d51a-11eb-9777-0242ac160002",
"processInstanceId": "7c1b93e5-d51a-11eb-9777-0242ac160002",
"taskDefinitionKey": "generateList",
"caseExecutionId": null,
"caseInstanceId": null,
"caseDefinitionId": null,
"suspended": false,
"formKey": null,
"tenantId": null
},
{
"id": "8ddeffcb-d51a-11eb-9777-0242ac160002",
"name": "Generar Lista",
"assignee": null,
"created": "2021-06-24T15:32:39.100-0300",
"due": null,
"followUp": null,
"delegationState": null,
"description": null,
"executionId": "8ddeffc6-d51a-11eb-9777-0242ac160002",
"owner": null,
"parentTaskId": null,
"priority": 50,
"processDefinitionId": "priceEditorProcess:1:703bb8ba-d51a-11eb-9777-0242ac160002",
"processInstanceId": "7c1b93e5-d51a-11eb-9777-0242ac160002",
"taskDefinitionKey": "generateList",
"caseExecutionId": null,
"caseInstanceId": null,
"caseDefinitionId": null,
"suspended": false,
"formKey": null,
"tenantId": null
}
]
Now i want to a send a message to a specific process,
/engine-rest/message
{
"messageName" : "cancelPriceEditMessage",
"businessKey" : "1987819024",
"processInstanceId": "7c1b93e5-d51a-11eb-9777-0242ac160002"
}
And this is my error
{
"type": "RestException",
"message": "org.camunda.bpm.engine.MismatchingMessageCorrelationException: ENGINE-13031 Cannot correlate a message with name 'cancelPriceEditMessage' to a single execution. 2 executions match the correlation keys: CorrelationSet [businessKey=1987819024, processInstanceId=7c1b93e5-d51a-11eb-9777-0242ac160002, processDefinitionId=null, correlationKeys=null, localCorrelationKeys=null, tenantId=null, isTenantIdSet=false]"
}
How do i send the specific processDefinitionId in the POST message? I tried y many ways but all had failed