validateExpressions step

Use this step to identify an incorrect expression upon validation

Last published at: August 11th, 2025

Description:

This decision step is used to identify an incorrect expression upon validation. Note: The expression is validated for its identity and not the expression result. For example, 1==1 is an expression, and TODAY() + 5 is not valid. 

 

Inputs

  • expressions – enter multiple expressions
  • varToStoreResult – variable/global to store the first failed expression
 

 

Returns

  • passed – expression passed validation
  • failed – expression failed validation 
 

 

Usage:

 

 

Example:

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

  • Create a new definition called “validateExpressionsDef” and open the definition in designer mode.
  • Drag a “validateExpressions” step to the canvas. 
  • Connect the dots between the “Start” and “validateExpressions” steps, as shown above. 
  • Click the "validateExpressions" step to configure its "Settings" properties. Provide a name for the step. Click the button to configure multiple expressions. Provide the variable or a global reference to store the invalid expression syntax. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • A pop-up window is rendered for configuration. Click the Add Row (+) button to insert an empty row. Provide the expression syntax here. Click the Save button. You may insert multiple expressions by adding more rows. 

 

  • 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 instance, and then execute it. Render the process instance. The step validates the syntax of each of the multiple expressions. The first invalid expression syntax in the top-down order is stored in the variable or global reference, as configured. 

 

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-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.