Hi, I am getting this exception. when trying to correlate the message using REST API.
2021-06-23 17:17:48.974 ERROR 52205 --- [nio-8080-exec-9] org.camunda.bpm.engine.context : ENGINE-16004 Exception while closing command context: Cannot correlate message 'DI_MESSAGE_LISTENER': No process definition or execution matches the parameters
Herre is my corrrelate payload
{
"messageName": "DI_MESSAGE_LISTENER", // name of the global listener
"businessKey": "Process_SendDi", //overall key of the process
"correlationKeys": {
"jobId": {
"value": "2c7ad900-ff8e-45cf-ba3d-3c1375a5584e",
"type": "string"
}
},
"processVariables": {
"success": {
"value": "true",
"type": "boolean"
}
},
"resultEnabled": true
}
Below is my BPMN file
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0gtpncx" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.8.1" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
<bpmn:process id="Process_SendDi" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="Start by calling from WF">
<bpmn:outgoing>Flow_1n9x2z7</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:serviceTask id="callDi" name="Send message To Di" camunda:type="external" camunda:topic="sendMessage">
<bpmn:incoming>Flow_1n9x2z7</bpmn:incoming>
<bpmn:outgoing>Flow_1rin0ew</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1n9x2z7" sourceRef="StartEvent_1" targetRef="callDi" />
<bpmn:sequenceFlow id="Flow_1rin0ew" sourceRef="callDi" targetRef="Activity_0c3t9tc" />
<bpmn:sequenceFlow id="Flow_17ljglv" sourceRef="Activity_0c3t9tc" targetRef="Gateway_0ejrsg1" />
<bpmn:endEvent id="Event_15k2cwh">
<bpmn:incoming>Flow_1ri920x</bpmn:incoming>
<bpmn:incoming>Flow_0638oy4</bpmn:incoming>
</bpmn:endEvent>
<bpmn:exclusiveGateway id="Gateway_0ejrsg1">
<bpmn:incoming>Flow_17ljglv</bpmn:incoming>
<bpmn:outgoing>Flow_0vfh758</bpmn:outgoing>
<bpmn:outgoing>Flow_1287msi</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0vfh758" name="Success status" sourceRef="Gateway_0ejrsg1" targetRef="Activity_0m15nqz">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${success==true}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1287msi" name="Failure status" sourceRef="Gateway_0ejrsg1" targetRef="Activity_1e8njao">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${success==false}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1ri920x" sourceRef="Activity_1e8njao" targetRef="Event_15k2cwh" />
<bpmn:sequenceFlow id="Flow_0638oy4" sourceRef="Activity_0m15nqz" targetRef="Event_15k2cwh" />
<bpmn:serviceTask id="Activity_1e8njao" name="Failure" camunda:type="external" camunda:topic="endProcessFailure">
<bpmn:incoming>Flow_1287msi</bpmn:incoming>
<bpmn:outgoing>Flow_1ri920x</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_0m15nqz" name="Success" camunda:type="external" camunda:topic="endProcessSuccess">
<bpmn:incoming>Flow_0vfh758</bpmn:incoming>
<bpmn:outgoing>Flow_0638oy4</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:receiveTask id="Activity_0c3t9tc" name="DI message listener" messageRef="Message_1uni8br">
<bpmn:incoming>Flow_1rin0ew</bpmn:incoming>
<bpmn:outgoing>Flow_17ljglv</bpmn:outgoing>
</bpmn:receiveTask>
</bpmn:process>
<bpmn:message id="Message_1uni8br" name="DI_MESSAGE_LISTENER" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_SendDi">
<bpmndi:BPMNEdge id="Flow_1n9x2z7_di" bpmnElement="Flow_1n9x2z7">
<di:waypoint x="238" y="220" />
<di:waypoint x="340" y="220" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1rin0ew_di" bpmnElement="Flow_1rin0ew">
<di:waypoint x="440" y="220" />
<di:waypoint x="550" y="220" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_17ljglv_di" bpmnElement="Flow_17ljglv">
<di:waypoint x="650" y="220" />
<di:waypoint x="695" y="220" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0vfh758_di" bpmnElement="Flow_0vfh758">
<di:waypoint x="720" y="195" />
<di:waypoint x="720" y="120" />
<di:waypoint x="910" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="700" y="155" width="74" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1287msi_di" bpmnElement="Flow_1287msi">
<di:waypoint x="720" y="245" />
<di:waypoint x="720" y="310" />
<di:waypoint x="910" y="310" />
<bpmndi:BPMNLabel>
<dc:Bounds x="702" y="275" width="67" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ri920x_di" bpmnElement="Flow_1ri920x">
<di:waypoint x="1010" y="310" />
<di:waypoint x="1120" y="310" />
<di:waypoint x="1120" y="238" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0638oy4_di" bpmnElement="Flow_0638oy4">
<di:waypoint x="1010" y="120" />
<di:waypoint x="1120" y="120" />
<di:waypoint x="1120" y="202" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="202" y="202" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="184" y="245" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1vfhx56_di" bpmnElement="callDi">
<dc:Bounds x="340" y="180" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0ejrsg1_di" bpmnElement="Gateway_0ejrsg1" isMarkerVisible="true">
<dc:Bounds x="695" y="195" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1cjktwh_di" bpmnElement="Activity_0m15nqz">
<dc:Bounds x="910" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_15k2cwh_di" bpmnElement="Event_15k2cwh">
<dc:Bounds x="1102" y="202" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1keowiq_di" bpmnElement="Activity_1e8njao">
<dc:Bounds x="910" y="270" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1mhj8ou_di" bpmnElement="Activity_0c3t9tc">
<dc:Bounds x="550" y="180" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>