Description:
This step waits for a message to arrive, completes the step, and starts processing from that point forward.
Inputs
- waitMessage – Wait for messages
Returns
- True – step executed successfully
- False – step failed to execute
Usage:

Example:
Let’s build and execute the “waitForMessageDef” example.
- Create a new definition called “waitForMessageDef.”
- Select the definition and click the “design” button
- Drag the “waitForMessage” and “placeHolder” steps to the canvas
- Connect the dots between the Start and other steps as above
- Click the first “waitForMessage” step to configure its “Required” properties. Provide a name for the step. Provide the message text to wait for.

- Click the other “waitForMessage” step to configure its “Settings” properties. Provide a name for the step. Provide the message text to wait for.

- 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. Render the process instance. The process instance is sleeping at the “waitForMessage” steps.

- Render the process instance. The process instance is sleeping at the “waitForMessage” steps.

- On the process instance page, select Utils - Send Message menu option.

- Select the message from the dropdown list. Click the “Send” button.

- The message is sent to the sleeping process instance via FlowWright .Net/REST API. A notification message is displayed in the top right-end corner.

- The process execution continues after the “waitForMessage” step. As one wait message is selected in this example, the other step continues to wait for the message.

- Repeat the “send message” activity to complete the process instance.

- The message is sent to the sleeping process instance via FlowWright .Net/REST API. A notification message is displayed in the top right-end corner.

- The process execution completes after the last “waitForMessage” step.

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.