Skip to main content

evaluate_condition

Function evaluate_condition 

Source
pub fn evaluate_condition(
    engine: &Engine,
    compiled_condition: Option<&Arc<Logic>>,
    context: &OwnedDataValue,
) -> Result<bool>
Expand description

Evaluate a workflow or task condition using a cached compiled logic expression. Returns true when condition_index is None (no condition is treated as “always run”). Evaluation errors are logged and downgraded to false — a condition that fails to evaluate skips its task/workflow rather than aborting the whole message.