Testing Expressions

From the expression builder, you can test your expression to ensure that the expression logic works as expected.

When testing an expression, you select a viewpoint and a node to evaluate the current expression. For expressions in custom validations, policy filters, or subscription filters, you can also select a request in the Submit, Approve, or Commit stage for the view to evaluate the current expression with.

After you select a node, click the Evaluate button to return the value of the selected node as calculated by the current expression logic.

To test an expression:

  1. From the expression builder, click Test Expression Test expression button.

    The Test Expression drawer is displayed.

  2. In Viewpoint, select the viewpoint that contains the node to evaluate. You can select any viewpoint that you have at least Participant (Read) access to that is either in the selected application or that uses the same node type for the property.
  3. In Node click the Node Selector node selector icon and select the node to be evaluated.

    The node's properties are displayed. Use the Search bar to search for specific properties.

  4. Optional: For expressions in custom validations, policy filters, or subscription filters, click the Request drop down menu and select a request to evaluate the expression with. You can select from requests for the current view that you have access to that are in the Submit, Approve, or Commit stage.
  5. Click Evaluate to evaluate the current expression logic for the selected node.

    The calculated result is displayed next to the Evaluate button.