com.ibm.rules.engine.ruledef.runtime

Interface RuleEngineObserver

  • All Superinterfaces:
    Observer
    All Known Subinterfaces:
    SteppingRuleEngineObserver


    public interface RuleEngineObserver
    extends Observer
    Use RuleEngineObserve to observe events specific to a RuleEngine. You observe the overall state of an Engine using EngineObserver.
    See Also:
    EngineObserver
    • Method Detail

      • ruleExecutionStarted

        void ruleExecutionStarted(Observable ruleEngine,
                                RuleInstance instance)
        Called when a RuleAction for a RuleInstance is about to be executed.
        Parameters:
        ruleEngine - The source of the event.
        instance - The RuleInstance on which the RuleAction is
      • ruleExecutionEnded

        void ruleExecutionEnded(Observable ruleEngine,
                              RuleInstance instance)
        Called after a RuleAction for a RuleInstance has been executed.
        Parameters:
        ruleEngine - The source of the event.
        instance - The RuleInstance on which the RuleAction has been executed.
      • exceptionRaisedInCondition

        void exceptionRaisedInCondition(Observable engine,
                                      java.lang.Exception exception,
                                      boolean internallyHandled)
        Called when an exception is raised in a test evaluation for a Rule condition.
        Parameters:
        engine - The engine where the exception takes place.
        exception - The raised exception.
        internallyHandled - true if the exception has been handled internally.
      • exceptionRaisedInAction

        void exceptionRaisedInAction(Observable engine,
                                   java.lang.Exception exception,
                                   RuleInstance ruleInstance,
                                   boolean internallyHandled)
        Called when an exception is raised during the execution of a Rule body.
        Parameters:
        engine - The engine where the exception takes place.
        exception - The exception raised.
        ruleInstance - The executed RuleInstance.
        internallyHandled - Set to true if the exception has been handled and the

© Copyright IBM Corp. 1987, 2017