Function evaluate_with_context

Source
pub fn evaluate_with_context(
    definition: String,
    host: Arc<dyn HostContext>,
) -> String
Expand description

Evaluate a CEL expression with the given definition by compiling it first. @param definition The definition of the expression, serialized as JSON. This defines the expression, the variables, and the platform properties. @param host The host context to use for resolving properties @return The result of the evaluation, either “true” or “false”