drules library

A simple json based Dart rule engine.

Classes

Action
An abstract class representing an action.
ActionDefinition
Represents an action definition. An action definition is a set of parameters that can be used to execute an action.
ActionInfo
Represents information about the actions to be executed when a rule is activated.
ActionResult
Represents the result of an action execution.
ActivationRecord
Represents an activation event.
Condition
An abstract class representing a condition.
ConditionDefinition
Represents a condition definition. A condition definition is a set of operands and an operator that can be used to evaluate a condition.
CustomAction
Represents a custom action that is defined by the user.
FileRuleRepository
A rule repository that loads rules from file system.
JsonRuleRepository
Represents a json based rule repository.
Rule
Represents a JSON rule. A rule is a set of conditions and actions that can be executed when the conditions are met.
RuleContext
Represents a rule context. The rule context is used to evaluate the conditions and execute the actions of a rule.
RuleEngine
Represents a JSON based rule engine where all rules are stored in JSON format.
RuleRepository
Represents a repository of rules.
RuleResult
Represents the result of a rule execution.
StringRuleRepository
A rule repository that loads rules from a list of strings.

Constants

lastResult → const String

Typedefs

ActivationEventListener = void Function(ActivationRecord event)
An event listener that listens for activation events.

Exceptions / Errors

RuleEngineException
Exception thrown by the Rule Engine.