Table of Contents

Class RuleEvaluationResult

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

The result of evaluating a rule set against one fact: which rules fired, the merged outputs, how execution ran, and (when enabled) a full execution trace.

public sealed class RuleEvaluationResult
Inheritance
RuleEvaluationResult
Inherited Members

Constructors

RuleEvaluationResult(IReadOnlyList<FiredRule>, IReadOnlyDictionary<string, object?>, CompilationMode, EvaluationTrace?, IReadOnlyList<RuleFailure>?)

Creates an evaluation result.

Properties

CompilationMode

Whether execution used compiled delegates or the dynamic-fact interpreter.

Failures

The authored failureMessage of every rule that was evaluated and whose condition did not pass, in evaluation order. Rules without a failureMessage, rules that matched, and rules that were skipped (disabled, or unreached after a stop-on-first-match) contribute nothing. Empty when no evaluated rule with a message failed.

FiredRules

The rules that fired, in evaluation order (descending priority, then document order).

Outputs

All action outputs merged across fired rules; later rules overwrite earlier ones on key collisions.

Trace

The execution trace, or null when EnableTrace was false.