isTestMode Step
Description:
This step determines an instance's execution mode at run time. We can use it to work with test-mode instance executions.
Inputs
- None
Returns
- True: Returns if instance is in test mode
- False: Returns if instance is not in test mode
Usage:
Example:
Let’s build and execute the “isTestModeDef” example.
- Create a new definition called “isTestModeDef”
- Select the definition and click the “design” button
- Drag the above controls to the canvas and connect them
- Click the "isTestMode" step to configure its "Settings" properties. Provide a name to the step.
- 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.
- Select the link connection between “isTestMode” step and the “Task” step and select “True condition”
- Select the link connection between “isTestMode” step and “abortInstance” step and select “False condition”
- Save the process definition, create a process instance, and execute it in test mode. Select a user from the dropdown list. Click “Create and Execute” to generate and execute a new process instance.
- The process instance is executed, and the task step is assigned to the configured user. If the executed instance is without test mode, then the instance will execute the 'abortInstance" step.
Definition Sample:
You may download the sample definition(s) from the link here and 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.