This error message occurs while correlating a message with either invalid businessKey or invalid correlationkeys/process variables.
Correlating the message with invalid businessKey:

Error message:
org.camunda.bpm.engine.context : ENGINE-16004 Exception while closing command context: Cannot correlate message 'unknownMessage': No process definition or execution matches the parameters
org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message 'unknownMessage': No process definition or execution matches the parameters
at org.camunda.bpm.engine.impl.cmd.CorrelateMessageCmd.execute(CorrelateMessageCmd.java:88) ~[camunda-engine-7.13.0-ee.jar:7.13.0-ee]
Correlating message with proper keys:
{
"businessKey": "KNO222",
"messageName": "unknownMessage",
"correlationKeys": {
"name": {
"value": "peter",
"type": "String"
}
},
"processVariables": {
"city": {
"value": "bangalore",
"type": "String"
}
},
"resultEnabled": true
}
Response:
[
{
"resultType": "Execution",
"execution": {
"id": "8379acb1-f47d-11ea-9154-507b9dc4ed46",
"processInstanceId": "8379acb1-f47d-11ea-9154-507b9dc4ed46",
"ended": false,
"tenantId": null
},
"processInstance": null
}
]
Deploy this bpmn file and test: MessageService.bpmn (5.8 KB)




