Interface RulesEngineListener


  • public interface RulesEngineListener
    A listener for rules engine execution events.
    • Method Detail

      • afterExecute

        default void afterExecute​(Rules rules,
                                  Facts facts)
        Triggered after executing the rule set When this listener is used with a InferenceRulesEngine, this method will be triggered after the execution of each candidate rule set in each iteration.
        Parameters:
        rules - fired
        facts - present after firing rules
      • beforeEvaluate

        default void beforeEvaluate​(Rules rules,
                                    Facts facts)
        Triggered before evaluating the rule set. When this listener is used with a InferenceRulesEngine, this method will be triggered before the evaluation of each candidate rule set in each iteration.
        Parameters:
        rules - to fire
        facts - present before firing rules