Message Queuing with Camunda

Good day,

Problem: A task starts a process and the started process should immediately send a message to the starting process. But the receive message task is not running yet.

How can the problem be solved without message queuing and with the Camunda board means?

Thank you very much.

1 Like

Hi @camfomd

Can you upload the model you’re discussing it’ll make it easier to follow what you need to change.

Hi Naill,

I would like to coordinate two workflows.
Problem: Workflow A starts workflow B. Workflow B sends a message to Workflow A, but the latter cannot yet receive this message.

One solution would be to start sending and receiving with a parallel gateway at the same time and give the receiving task a priority of 2.

Thank you very much.

asyncronous_workflows.bpmn (12.5 KB)

“type”: “RestException”,
“message”: “org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message ‘Message_Workflow_B_finished’: No process definition or execution matches the parameters”

asyncronous_workflows.bpmn (12.8 KB)

Hi @camfomd,

you may get rid of the exception if you check both message send events as “Asynchronous before”. And leave the receive events unchecked.

Hope this helps, Ingo

Hi Ingo,
asyncronous_workflows.bpmn (12.8 KB)

unfortunately, the change did not result in any improvement.

Thank you very much.

Hi @camfomd

That model doesn’t appear to have changed, is that the one you’re running?

Yes, not modified

asynchronous_workflows.bpmn (12.8 KB)
Filename and events was changed

Hi Niall and Ingo,

this variant works, but I also had an error in the model.
I used execution.getId() instead of execution.getProcessInstanceId() for the processID.

How could the loop be dispensed with?

Thank you very much.

asynchronous_workflows.bpmn (16.0 KB)

I have found a workaround, but it is probably not very robust.
But the model looks good again.

The listener waits 10 seconds - see groovy script.

I’m still trying a solution with Artemis MQ Topics.

Best regards Frank

asynchronous_workflows.bpmn (11.9 KB)