evaluateExpression()

Overview

public boolean function evaluateExpression(
      required string expressionId    
    , required string context         
    , required struct payload         
    , required struct configuredFields
)

Evaluates an expression, returning true or false, using the passed context, payload and field configuration.

Arguments

NameTypeRequiredDescription
expressionIdstringYesThe ID of the expression to evaluate
contextstringYesThe context in which the expression is being evaluated. e.g. 'request', 'workflow' or 'marketing-automation'
payloadstructYesA structure of data representing a payload against which the expression can be evaluated
configuredFieldsstructYesA structure of fields configured for the expression instance being evaluated