evaluateDecisions Step

Use this step to evaluate multiple decisions.

Last published at: January 20th, 2026

Description:

This step evaluates multiple conditions and returns the first matching value. Similar to a “Switch” statement, this step is configured with expressions and return values at design time.

 

Inputs

  • decisions – multiple decisions to evaluate
  • varToStoreResult – variable to store the resulting value 
 

 

Returns

  • returns the value from the first evaluated expression
 

 

 

Usage:

 

 

Example:

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

  • Create a new process definition named “evaluateDecisionsDef” and open it in Designer mode. 
  • Drag an “updateGlobals, evaluateDecisions, and placeHolder” step to the canvas.
  • Connect the dots between the “Start” step and other steps as shown above.
  • Define a variable or a global to store the result.
  • Click the "updateGlobals" step to configure its "Required" properties. Provide a name for the step, then click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description. 

 

  • Select the “Optional” tab, then click the Update multiple globals button. A configuration pop-up window appears. Click the Add Row button to insert an empty row. Enter the global name and value, then click the Save button.  

 

  • Click the "evaluateDecisions" step to configure its "Required" properties. Provide a name for the step. Click the button to add multiple decisions and returns. Provide a variable or a global to store the result. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the button to add multiple decisions and returns. A pop-up window appears for configuration. Click the Add Row button to insert an empty row. Enter the decision and return value. Click the Save button. 

 

  • Click the Decision field. Press Alt+E to open the Expression Builder. This utility enables the creation and validation of expressions, as shown in the image below. Copy the expression to the clipboard, then paste it into the input field.

 

  • Examples for decisions to evaluate:
    (1) Variable.number > 10    
    (2) Global.testNumber >= 100
    (3) "test" == "test"
    (4) 1==1
    (5) DateTime.Today.ToString()=="04.09.2019 00:00:00"
     
  • 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, execute it, and then render the process instance. Click the process step. 

 

  • The step evaluates the expression and returns the first matching value.

 

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.