com.ibm.rules.res.xu.plugin
Class EventPlugin
- java.lang.Object
-
- com.ibm.rules.res.xu.plugin.internal.PluginBase
-
- com.ibm.rules.res.xu.plugin.Plugin
-
- 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
Constructors Constructor and Description EventPlugin()
-
Method Summary
Methods Modifier and Type Method and Description 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, getXUInfo, isLoggable, log, setConnectionFactory, setLogHandler, setProperties, setResourceAdapter, setRulesetUsageInformationMonitor, setXUConfig, start, subscribe, unsubscribe
-
-
-
-
Method Detail
-
taskCompleted
public void taskCompleted(TaskEvent evt)
Called when a task is completed.- Specified by:
taskCompleted
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.ibm.rules.res.xu.event.internal.XUListener
- Parameters:
evt
- The event.
-
-