evaluateCondition()

Overview

public boolean function evaluateCondition(
      required string conditionId
    , required string context    
    ,          struct payload    
)

Evaluates a given condition by logically evaluating each of its expressions with the given payload and context.

Arguments

NameTypeRequiredDescription
conditionIdstringYesID of the condition stored in the database
contextstringYesThe context of the evaluation, e.g. 'webrequest', or 'workflow', etc.
payloadstructNoPayload for the given context, e.g. a structure containing workflow state, or information about the current web request. This will be calculated automatically and is here largely for backward compatibility + ability to supply some custom payloads