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
Name | Type | Required | Description |
---|---|---|---|
conditionId | string | Yes | ID of the condition stored in the database |
context | string | Yes | The context of the evaluation, e.g. 'webrequest', or 'workflow', etc. |
payload | struct | No | Payload 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 |