sendMessagesToProcess Step
Description:
This step sends messages to specific process instances with the “WaitForMessage” step. The process instance ID of the other workflow is a prerequisite for this process.
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 process 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” and open the definition in designer mode.
- Drag the “sendMessagesToProcess” step to the canvas
- Connect the dots between the “Start” and “sendMessagesToProcessDef” steps, as shown above.
- Click the "sendMessagesToProcess" step to configure its "Required" properties. Provide a name for the step. Provide the text message to send. Provide the “WaitForMessage” process instance GUID value as shown in the example here. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description.

- 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 then execute it. 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 process instance looks like the one below.

Definition Sample:
You may download the sample definition(s) from the link here and later import them (drag-and-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.