Is Test Mode

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

Last published at: August 3rd, 2023

isTestMode Step

Description:

This step is used to determine the execution mode of instance in run time. We can use this step 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 on the "isTestMode" step to configure its "Settings" properties. Provide a name to the step. 
  • The “Logging” setting configuration is necessary for documentation and also measure the workflow progress and the percent complete. This is acheived 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 “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 in test mode. Select an user from the dropdown list. Click on “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 executed instance without test mode, then instance will execute the 'abortInstance" step.