validateExpressions step

Use this step to identify an incorrect expression upon validation

Last published at: November 14th, 2024

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”
  • Select the definition and click the “design” button
  • Drag a “validateExpressions” step from the toolbox
  • Connect the dots between the Start and “validateExpressions” step
  • Click the "validateExpressions" step to configure its "Settings" properties. Provide a name to the step. Click the button to configure multiple expressions. Provide the variable/global reference to store the invalid expression syntax. Click the Save button to save the configuration. 

 

  • A popup 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 execute. Render the process instance. The step validates each of the syntax of the multiple expressions. The first invalid expression syntax in the top-bottom order is stored in the variable/global reference provided.  

 

 

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.