Hey, I know there are a few people here who have had similar problems, but I still get stuck.
i got this error message:
Cannot correlate message ‘sendeInfo’: No process definition or execution matches the parameters
org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message ‘sendeInfo’: No process definition or execution matches the parameters
Everything works fine. But the last message to show the information is not working.
I dont know what to do. I readed the thing with asynchronous, but it doesent work for me.
Do I have to set something for the other messages ( in the picture it is not checked, but i tried it)?
I start with:
public void execute(DelegateExecution execution) throws Exception {
final Map<String, Object> data = new HashMap<>();
data.put("WORKERS", Variables.objectValue(execution.getVariable("WORKERS"))
.serializationDataFormat(Variables.SerializationDataFormats.JSON).create());
data.put("BUSINESS_KEY", execution.getVariable("BUSINESS_KEY"));
final RuntimeService service = execution.getProcessEngineServices().getRuntimeService();
service.startProcessInstanceByMessage("Sende Mitarbeiterdaten", data);
}
Second Message is:
final Map<String, Object> data = new HashMap<>();
data.put("WORKER_ID", execution.getVariable("WORKER_ID"));
data.put("START_DATE", execution.getVariable("START_DATE"));
System.out.println(execution.getVariable("WORKER_ID"));
System.out.println(execution.getVariable("START_DATE"));
data.put("END_DATE", execution.getVariable("END_DATE"));
final String key = (String) execution.getVariable("BUSINESS_KEY");
final RuntimeService service = execution.getProcessEngineServices().getRuntimeService();
service.correlateMessage("Sende Urlaubsantrag", key, data);
And the one with the problem is:
final Map<String, Object> infoData = new HashMap<>();
infoData.put("WORKER_ID", execution.getVariable("WORKER_ID"));
infoData.put("START_DATE", execution.getVariable("START_DATE"));
infoData.put("END_DATE", execution.getVariable("END_DATE"));
infoData.put("GENEHMIGUNG", execution.getVariable("GENEHMIGUNG"));
final String key = (String) execution.getVariable("BUSINESS_KEY");
final RuntimeService service2 = execution.getProcessEngineServices().getRuntimeService();
service2.correlateMessage("sendeInfo", key,infoData);
79 / 5000
I can only upload one picture so I don’t know if you can see it.
I hope someone can help me.

