decision Step

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

Last published at: September 26th, 2024

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 on the “updateVariable” step to configure its “Settings” properties. Provide value to “variable.POAmount”

 

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

 

  • Click on 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

     
  • 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.