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
Name | Type | Required | Description |
---|---|---|---|
expressionId | string | Yes | ID of the expression to validate |
fields | struct | Yes | Struct of saved field configurations for the expression instance to validate |
context | string | Yes | Context in which the expression is being used |
validationResult | any | Yes | Validation result object with which to record errors |
filterObject | string | No (default="") | Object for which the expression is being used as a filter |