Test Mode?

Use this step to determine the execution mode of instance in run time.

Last published at: February 24th, 2025

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 process definition called “isTestModeDef” and open the definition in designer mode. 
  • Drag the “isTestMode, Task, AbortInstance, and placeHolder” steps to the canvas.
  • Connect the dots between the “Start” and other steps, as shown above.
  • Click the "isTestMode" step to configure its "Required" properties. Provide a name for the step. 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.

 

  • 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 user configured in the task. Render the process instance. The execution has followed the “TRUE” path. If the executed instance is without test mode, then the instance will follow the “FALSE” path. 

 

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.