Rule Execution Server API

com.ibm.rules.res.xu.plugin
Class EventPlugin

java.lang.Object
  extended by com.ibm.rules.res.xu.plugin.internal.PluginBase
      extended by com.ibm.rules.res.xu.plugin.Plugin
          extended by com.ibm.rules.res.xu.plugin.EventPlugin
All Implemented Interfaces:
com.ibm.rules.res.xu.engine.internal.EngineListener, com.ibm.rules.res.xu.event.internal.XUListener, ilog.rules.res.xu.plugin.internal.IlrPlugin

public class EventPlugin
extends Plugin
implements com.ibm.rules.res.xu.engine.internal.EngineListener, com.ibm.rules.res.xu.event.internal.XUListener

EventPlugin is an implementation plug-in. You can extend it to create custom plug-ins that receive events from the decision engine (DE) or from the classic rule engine (CRE).

An execution unit (XU) plug-in can receive rule engine events only when the trace mode of the ruleset is enabled.

Since:
8.0.1

Constructor Summary
EventPlugin()
           
 
Method Summary
 void connectionClosed(ConnectionEvent evt)
          Called when a XU connection is closed.
 void connectionOpened(ConnectionEvent evt)
          Called when a XU connection is opened.
 void ruleExecutionCompleted(RuleEvent evt)
          Called when the action part of a rule is completed.
 void ruleExecutionStarted(RuleEvent evt)
          Called when the action part of a rule is started.
 void rulesetArchiveChanged(RulesetArchiveEvent evt)
          Called when the XU is notified about ruleset archive changes.
 void taskCompleted(TaskEvent evt)
          Called when a task is completed.
 void taskStarted(TaskEvent evt)
          Called when a task is started.
 
Methods inherited from class com.ibm.rules.res.xu.plugin.Plugin
getRulesetUsageInformationMonitor, notifyRulesetArchiveChanged, release, start
 
Methods inherited from class com.ibm.rules.res.xu.plugin.internal.PluginBase
destroy, executeRuleset, executeRuleset, getInteractionExtension, getWorkManager, getXUConfig, getXUInfo, isLoggable, log, setConnectionFactory, setLogHandler, setProperties, setResourceAdapter, setRulesetUsageInformationMonitor, setXUConfig, start, subscribe, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventPlugin

public EventPlugin()
Method Detail

taskCompleted

public void taskCompleted(TaskEvent evt)
Called when a task is completed.

Specified by:
taskCompleted in interface com.ibm.rules.res.xu.engine.internal.EngineListener
Parameters:
evt - The event.

taskStarted

public void taskStarted(TaskEvent evt)
Called when a task is started.

Specified by:
taskStarted in interface com.ibm.rules.res.xu.engine.internal.EngineListener
Parameters:
evt - The event.

ruleExecutionCompleted

public void ruleExecutionCompleted(RuleEvent evt)
Called when the action part of a rule is completed.

Specified by:
ruleExecutionCompleted in interface com.ibm.rules.res.xu.engine.internal.EngineListener
Parameters:
evt - The event.

ruleExecutionStarted

public void ruleExecutionStarted(RuleEvent evt)
Called when the action part of a rule is started.

Specified by:
ruleExecutionStarted in interface com.ibm.rules.res.xu.engine.internal.EngineListener
Parameters:
evt - The event.

connectionOpened

public void connectionOpened(ConnectionEvent evt)
Called when a XU connection is opened.

Specified by:
connectionOpened in interface com.ibm.rules.res.xu.event.internal.XUListener
Parameters:
evt - The event.

connectionClosed

public void connectionClosed(ConnectionEvent evt)
Called when a XU connection is closed.

Specified by:
connectionClosed in interface com.ibm.rules.res.xu.event.internal.XUListener
Parameters:
evt - The event.

rulesetArchiveChanged

public void rulesetArchiveChanged(RulesetArchiveEvent evt)
Called when the XU is notified about ruleset archive changes.

Specified by:
rulesetArchiveChanged in interface com.ibm.rules.res.xu.event.internal.XUListener
Parameters:
evt - The event.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013