Decision Step

Use this step to evaluate an expression to return True or False

Last published at: March 16th, 2025

Description:

This step evaluates an expression and returns True or False.

 

Inputs

  • Condition – expression to evaluate, type any C# expression here
 

 

Returns

  • True – expression evaluates to a true result
  • False – expression evaluates to a false result
 

 

Usage:

 

 

Example:

Let’s build and execute the “decisionDef” example.             

  • Create a new definition called “decisionDef"
  • Select the definition and click the “design” button
  • Drag UpdateVariable and Decision step to the canvas and connect as shown in the graphic above
  • Configure process variable “variable.POAmount” as a number
  • Click the “updateVariable” step to configure its “Optional” properties. Provide value to “variable.POAmount”

 

  • Click the “decision” step to configure its “Required” properties, as shown in the graphic below. Click the connection line and configure the True and False process paths. 

 

  • Click the "Condition to evaluate" field. Press Alt+E on the keyboard to invoke the Expression Builder. This utility allows you to build and validate expressions, as shown in the image below. Copy the expression to the clipboard and paste it in the input field.

 

  • Example for conditions to evaluate: 
    e.g. Variable.number + 10 >100  
    e.g. Global.testNumber + 100 / Variable.colNum >=1000
    e.g. Variable.data + "test" == “Apptest”
    e.g. Global.hasData == 1

     
  • 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 process instance and execute. The process step should return True or False value based on the condition provided. Render the process instance to view the step properties. 

 

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.

Click here to download the sample file.

 

How can we improve this article?

Share additional info and suggestions