public interface RuleEngineObserver extends Observer
RuleEngineObserve to observe events specific to a
RuleEngine.
You observe the overall state of an Engine using
EngineObserver.EngineObserver| Modifier and Type | Method and Description |
|---|---|
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. |
void |
exceptionRaisedInCondition(Observable engine,
java.lang.Exception exception,
boolean internallyHandled)
Called when an exception is raised in a test evaluation for a
Rule
condition. |
void |
ruleExecutionEnded(Observable ruleEngine,
RuleInstance instance)
Called after a
RuleAction for a RuleInstance has been executed. |
void |
ruleExecutionStarted(Observable ruleEngine,
RuleInstance instance)
Called when a
RuleAction for a RuleInstance is about to be executed. |
void ruleExecutionStarted(Observable ruleEngine, RuleInstance instance)
RuleAction for a RuleInstance is about to be executed.ruleEngine - The source of the event.instance - The RuleInstance on which the RuleAction isvoid ruleExecutionEnded(Observable ruleEngine, RuleInstance instance)
RuleAction for a RuleInstance has been executed.ruleEngine - The source of the event.instance - The RuleInstance on which the RuleAction has been executed.void exceptionRaisedInCondition(Observable engine, java.lang.Exception exception, boolean internallyHandled)
Rule
condition.engine - The engine where the exception takes place.exception - The raised exception.internallyHandled - true if the exception has been handled internally.void exceptionRaisedInAction(Observable engine, java.lang.Exception exception, RuleInstance ruleInstance, boolean internallyHandled)
Rule body.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