Why Meesage Start Event Does Not Catch The Event

I Want to create a Notification Process and this process we can call it from any other process, I have Sending_Process_A that has a MESSAGE INTERMEDIANT THROW EVENT, and a process Notification_Process_B has a MESSAGE START EVENT

Why process Notification_Process_B does not start when start a process of Sending_Process_A and then completing the task?


diagram_12_0.bpmn (3.6 KB)
diagram_12_1.bpmn (3.7 KB)

Hi @Ayah_Alrifai

Throwing a message requires an implementation.
The easiest way is to throw it through an expression

#{execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation('SendNotification').correlate()}

1 Like

You can set variables and supply a business key value when doing correlation
#{execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation('SendNotification').setVariable("<VAR_NAME>", <VALUE>).processInstanceBusinessKey("<BUSNIESS_KEY>").correlate()}

1 Like

Thank you so much, it is work now :+1:t2:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.