Table of Contents

Interface IRuleActionHandler

Namespace
RuleWright.Execution
Assembly
RuleWright.Execution.dll

A custom action type referenced from rule JSON as { "type": "<Name>", "target": "...", "value": ... }. Where the built-in action types cover replacing, accumulating, appending, and removing outputs, a handler implements any other way a fired rule should shape the outputs — the rule document still only names the action, and the behaviour stays registered C# code (RuleWrightBuilder.RegisterAction). An unregistered type fails at LoadRuleSet, exactly as an unknown built-in type does.

public interface IRuleActionHandler

Remarks

Implementations must be thread-safe (one instance serves all concurrent evaluations) and should confine themselves to the outputs exposed on the context: evaluation is meant to stay a pure fact-in, result-out computation.

Properties

Name

The action type name used in rule JSON. Case-sensitive.

Methods

Apply(RuleActionContext)

Applies the action for one fired rule branch.