Send and receive messages between 2 pools back and forth

Jun 16
Please help me , I want both pool to send and receive message from each pool.

I have 2 pools that each send a message to the other pool but they fail upon starting them on camunda, I attached my BPMN

Pool1 first task send a message to pool 2 start event.
Task 1 expression ${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(“requestA”).correlateWithResult()}

pool 2 recives a message at start event. configuration Message name= requestA

Pool 2 then also send message to A
pool 2 task configuration ${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(“requestB”).correlateWithResult()}

Pool 1 receive the message task configuration Message name = requestB

upon starting it on camunda it fails with the error below

The process could not be started. :
Cannot instantiate process definition Process_1:1:0245b319-7173-11e8-8869-402cf4108c7d: Error while evaluating expression: ${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(“requestA”).correlateWithResult()}. Cause: org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message ‘requestA’: No process definition or execution matches the parameters

I recommend you write a unit test for your process to make the problem reproducible and quickly try out solutions. See https://docs.camunda.org/manual/7.9/user-guide/testing/ for details on testing in Camunda and https://github.com/camunda/camunda-engine-unittest for a project template to quickly write a unit test. You can then share the test with us on this forum and it will be much easier to pinpoint problems.

Thanks,
Thorben