Interface RuleAndRuleGroupExecutionTracker

All Known Implementing Classes:
DefaultRuleAndRuleGroupExecutionTracker

public interface RuleAndRuleGroupExecutionTracker
RuleAndRuleGroupExecutionTracker is used for tracking rule and rule group executions. It provides methods for checking whether the rule execution is allowed and for the actual tracking.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    returns true if the rule is allowed to be executed, otherwise false
    void
    tracks that an action of the given rule code has been executed successfully
    void
    tracks that the invoking rule (and its rule group) has been executed successfully
  • Method Details

    • allowedToExecute

      boolean allowedToExecute(Object rule)
      returns true if the rule is allowed to be executed, otherwise false
    • trackActionExecutionStarted

      void trackActionExecutionStarted(String ruleCode)
      tracks that an action of the given rule code has been executed successfully
    • trackRuleExecution

      void trackRuleExecution(Object context)
      tracks that the invoking rule (and its rule group) has been executed successfully