Description:
This step sends messages to specific process instances with the “WaitForMessage” step. The process instance ID of the other workflow is a prerequisite.
Inputs
- waitMessage – Messages to send
- InstanceID – Enter process Instance ID
Returns
- True – step executed successfully
- False – step failed to execute
Prerequisite:
Let’s assume the process below is executed with a new instance ID 2f07d550-f77d-43c2-8a34-c96b5a55b3de. This process instance is seen in the Sleeping status at the WaitForMessage step.

Usage:

Example:
Let’s build and execute the “sendMessagesToProcessDef” example.
- Create a new definition called “sendMessagesToProcessDef”
- Select the definition and click the “design” button
- Drag the above steps to the canvas
- Connect the dots between the Start and “sendMessagesToProcessDef” step
- Click the "sendMessagesToProcess" step to configure its "Required" properties. Provide a name to the step. Provide the message to send. Provide the WaitForMessage workflow process instance GUID value.

- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

- Save the process definition, create a new instance, and execute. The SendMessageToProcess step publishes or sends messages to the other process, with the “WaitForMessage” step indicating whether to continue the workflow execution. When rendered, the other process instance looks like the one below.

Definition Sample:
You may download the ZIP file and extract the sample definition(s) from the link here. Then, you can later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.
Click here to download the sample file.