Inter Process Communication using Wait for Notification and Notify Activities
This sample explains inter-process communication using the Notify and the Wait for Notification activities in different processes. One process notifies the other waiting process using these activities. These activities are co-related using the key configured on the General tab and the same Notify Configuration resource configured for both the activities.
Procedure
Result
A waitnotify.log file is created in the C:\tmp\WaitNotify folder of the default location, or the path you specified earlier. This file contains the information similar to the following:
Main Process: Started the main process
Main Process: Spawning non-inline sub process
Main Process: Activity Waiting for the notification
Sub Process : Non-inline sub process started
Sub Process : Notification sent for the waiting activity
Main Process: Notification Received from the other process with Data: Results sent from the notifying process
Understanding the Configuration
- The main process is triggered through a Timer activity.
- The main process spawns a non-inline sub process.
- The main process then starts waiting, using a Wait for Notification activity.
- The spawned sub process sends the notification for the waiting activity using a Notify activity and proceeds further.
- The Wait for Notification activity in the main process receives the notification and proceeds further.