Configuration of Send Message Event and Receive Message Event within Process model

Send Message Event:

In the Setup tab, for 'Message Destination', select the Receive Message Event that is in the Process Model where you need to send the message. To do this, search for the process model and select your Receive Message Event.

In Data tab, 'DestinationProcessID' is the ID of the process instance of the Process Model to which you need to send the message. Click on "New Mapping" and name it. Configure the 'type' based on your need. The 'value' should be your process variable which holds the message(data) to be sent.

                                                

Receive Message Event:

In the Setup tab, for 'Receive Message', select 'Process to Process'.

In Data tab, click on 'Import Custom Properties', search for the Process Model where you have the Send Message Event, and select your Send Message Event. 'Value' will be automatically set. Then store it in the desired process variable.


My Use Case:

In Process Model A, I call an integration to perform my desired job. When starting that integration, I pass the Process Instance ID because I need this ID to send a message back from Process Model B. After the integration node in Process Model A, there is a Receive Message Event where the process waits.

After the job completes, it triggers a Web API to start Process Model B, passing both the job output and the Process Instance ID that was sent earlier. In Process Model B, I use this Process Instance ID as the DestinationProcessID in the Send Message Event. Additionally, I configured Import Custom Properties to pass the job's output data back to Process Model A.

Process Model A waits at the Receive Message Event until it receives the message from Process Model B. Once the message is received, Process Model A completes the process.

This configuration enables process-to-process communication using message events and Process Instance IDs to pass data between process models. This enables efficient coordination between long-running integrations and targeted message delivery.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data