com.ibm.rules.res.xu.plugin

Class 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 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.

© Copyright IBM Corp. 1987, 2020