Package org.rossonet.ext.rules.api
Interface RulesEngineListener
-
public interface RulesEngineListenerA listener for rules engine execution events.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterExecute(Rules rules, Facts facts)Triggered after executing the rule set When this listener is used with aInferenceRulesEngine, this method will be triggered after the execution of each candidate rule set in each iteration.default voidbeforeEvaluate(Rules rules, Facts facts)Triggered before evaluating the rule set.
-
-
-
Method Detail
-
afterExecute
default void afterExecute(Rules rules, Facts facts)
Triggered after executing the rule set When this listener is used with aInferenceRulesEngine, this method will be triggered after the execution of each candidate rule set in each iteration.- Parameters:
rules- firedfacts- present after firing rules
-
beforeEvaluate
default void beforeEvaluate(Rules rules, Facts facts)
Triggered before evaluating the rule set. When this listener is used with aInferenceRulesEngine, this method will be triggered before the evaluation of each candidate rule set in each iteration.- Parameters:
rules- to firefacts- present before firing rules
-
-