isExpressionValid()

Overview

public boolean function isExpressionValid(
      required string expressionId    
    , required struct fields          
    , required string context         
    , required any    validationResult
    ,          string filterObject     = ""
)

Validates a configured expression for a given context. Returns true if valid, false otherwise and sets specific error messages using the passed Validation result object.

Arguments

NameTypeRequiredDescription
expressionIdstringYesID of the expression to validate
fieldsstructYesStruct of saved field configurations for the expression instance to validate
contextstringYesContext in which the expression is being used
validationResultanyYesValidation result object with which to record errors
filterObjectstringNo (default="")Object for which the expression is being used as a filter