Constructor
new RuleContext(engine, rule, path)
Creates an instance of the rule context with the engine, the rule and its path.
Parameters:
Name | Type | Description |
---|---|---|
engine |
InfernalEngine | The parent InfernalEngine |
rule |
function | The rule to execute. |
path |
String | The path of the rule. |
- Source:
Methods
(async) execute()
Execute the rule within its context returning the
resulting object to its contextualized facts.
- Source: