IPC Activities allow us to pass messages between running processes and established the communication between two running processes. Using IPC activities one Process can tells another process that an event has occurred. These activities work only for the processes running on the same Robot (same user, same machine).
How to Use it –
- Install IPC Activities in both the Processes using UiPath manage packages Official tab.
Note : -
Please make sure that IPC.Activities package version remains same in all the processes to make a connection between them.
- Once IPC Package is installed, two new Activities gets added in UiPath Activities panel :
• Broadcast Message.
• Message Receiver Trigger.
i. Broadcast Message Activity: - This Activity lets you send a message on a specified channel. You can send it on any channel and all the processes listening on that channel will receive the message.
For example, Here I’m sending a message to all the processes listening on the Channel: “HoldReminder” stating that “Call is resumed, Exit Reminder”.
ii. Message Receiver Trigger: - This Activity works only inside Trigger Scope Activity, as the name suggest this activity is used to receive the message triggered from as specific channel to receive the broadcasted messages. The received message can be fetched from args.Message argument.
The value in the channel property field of this activity must go inside with the one Broadcast Message Activity for the trigger to Activate.
For Example: the child process that we explained previously, can have a trigger waiting for the “Call is resumed, Exit Reminder” messages, and anytime the message is received, it ends itself and does not display a prompt anymore.
Please find the Working Project with an example for the same.