Rule Execution Server API

com.ibm.rules.engine.ruledef.runtime
Interface AgendaObserver

All Superinterfaces:
Observer

public interface AgendaObserver
extends Observer

Use AgendaObserver to observe changes in an Agenda as it is used by an RuleEngine.


Method Summary
 void ruleInstanceInserted(Observable source, RuleInstance instance, RuleInstance previous)
          Called when a RuleInstance is added to the Agenda of an Engine.
 void ruleInstanceRetracted(Observable source, RuleInstance instance)
          Called when a RuleInstance is retracted from the Agenda of an Engine.
 void ruleInstanceUpdated(Observable source, RuleInstance instance, RuleInstance previous)
          Called when a RuleInstance is updated.
 

Method Detail

ruleInstanceInserted

void ruleInstanceInserted(Observable source,
                          RuleInstance instance,
                          RuleInstance previous)
Called when a RuleInstance is added to the Agenda of an Engine.

Parameters:
source - The source of the notification, typically a rule engine.
instance - The RuleInstance that has been inserted into the agenda. *
previous - The rule instance preceding the current instance, or null if the instance is the first one.

ruleInstanceUpdated

void ruleInstanceUpdated(Observable source,
                         RuleInstance instance,
                         RuleInstance previous)
Called when a RuleInstance is updated.

Parameters:
source - The source of the notification, typically a rule engine.
instance - The RuleInstance that has been updated. *
previous - The rule instance preceding the current instance, or null if the instance is the first one.

ruleInstanceRetracted

void ruleInstanceRetracted(Observable source,
                           RuleInstance instance)
Called when a RuleInstance is retracted from the Agenda of an Engine.

Parameters:
source - The source of the notification, typically a rule engine.
instance - The RuleInstance that has been retracted.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013