Decision Step
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 process definition called “decisionDef" and open it in Designer mode.
- Drag the “UpdateVariable and Decision” steps to the canvas.
- Connect the dots between the “Start” and other steps, as shown above.
- Define a variable or a global to store the result.
- Click the “updateVariable” step to configure its “Required” properties. Enter a name for the step, then click Save. Note: Click the "AI Predict" button to have Copilot add new process steps that match your process description.

- Click the “updateVariable” step to configure its “Optional” properties. Set the value of “variable.POAmount”. Select “No” if the variable value is not a C# expression. Click the Save button.

- Click the “decision” step to configure its “Required” properties, as shown below. Then click the connection line to configure the True and False process paths. Click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description.

- Click the "Condition to evaluate" field. Press Alt+E to open the Expression Builder. This utility lets you build and validate expressions, as shown below. Copy the expression to the clipboard, then paste it into the input field.

- Example for conditions to evaluate:
(1) Variable.number + 10 >100
(2) Global.testNumber + 100 / Variable.colNum >=1000
(3) Variable.data + "test" == “Apptest”
(4) Global.hasData == 1
- The “Logging” configuration is necessary for documentation and also measures workflow progress and percent complete. This is achieved by configuring the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties.

- Save the process definition, create a new instance, and execute it. The process step should return TRUE or FALSE based on the provided condition. Render the process instance to view the step properties.
Definition Sample:
You may download the sample definition(s) from the link provided and later import them (drag-and-drop) into 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 the import. Then, save the definition to confirm the changes.
Click here to download the sample file.