My requirement is catching event sending from the worker in the inner parallel sub process.
What I did is, defined a non inturrupting message boundary event and called engine-rest/message camunda rest api in the Work service task. But every time it gives following error.
{
"type": "RestException",
"message": "org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message 'workError': No process definition or execution matches the parameters"
}
I did lot of changes to request body to get a success result. but couldn’t get succeed. below is my request body.
{
"messageName": "workError",
"processInstanceId": "6c4a526c-b3f6-11ed-b1c2-0242ac120004",
"localCorrelationKeys": {
"workName": {
"value": "Test1"
}
}
}
I defined this workName variable in inner sub process. but the result is same.
If some one has an idea about what to do, it would be great help for me. Thank you.