EvaluateData

Evaluates the boolean expression and branches on the result, on the IO dispatcher. An expression composes not/and/or over leaf comparisons built by calling an operation function (e.g. isEqualsTo, isNull, containsSubstring) on a incomingData/dataSourceData value; an operation applied to a value of the wrong runtime type evaluates to false rather than throwing. Forwards incomingData unchanged to whichever trigger fires; any IncomingData leaf reads from that same value. Dispatches onSuccess (forwarding incomingData) when expression evaluates to true; onFailure (also forwarding incomingData) when it evaluates to false, or with the thrown Throwable instead when evaluation itself throws.

Parameters

id

Unique identifier of this event. Defaults to a random id.

trigger

Trigger that fires this event, built via EventTriggers.

events

Child events chained after this one, wired to its triggers (onSuccess, onFailure).

expression

Boolean expression to evaluate, built from incomingData/dataSourceData operations combined with not/and/or.