org.jbpm.process.instance.event.listeners

## Class TriggerRulesEventListener

- java.lang.Object
- - org.jbpm.process.instance.event.listeners.TriggerRulesEventListener

- All Implemented Interfaces:
    EventListener, org.kie.api.event.rule.AgendaEventListener

      public class TriggerRulesEventListener
      extends Object
      implements org.kie.api.event.rule.AgendaEventListener

  Dedicated AgendaEventListener that will fireAllRules as soon as:
  - match is created
  - after rule flow group is activated
  This listener should be used to automatically fire rules as soon as they get activated. Especially useful for executing business rule tasks as part of the process.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TriggerRulesEventListener(org.kie.api.runtime.KieSession ksession)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event)`
    `void` | `afterRuleFlowGroupActivated(org.kie.api.event.rule.RuleFlowGroupActivatedEvent event)`
    `void` | `afterRuleFlowGroupDeactivated(org.kie.api.event.rule.RuleFlowGroupDeactivatedEvent event)`
    `void` | `agendaGroupPopped(org.kie.api.event.rule.AgendaGroupPoppedEvent event)`
    `void` | `agendaGroupPushed(org.kie.api.event.rule.AgendaGroupPushedEvent event)`
    `void` | `beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event)`
    `void` | `beforeRuleFlowGroupActivated(org.kie.api.event.rule.RuleFlowGroupActivatedEvent event)`
    `void` | `beforeRuleFlowGroupDeactivated(org.kie.api.event.rule.RuleFlowGroupDeactivatedEvent event)`
    `void` | `matchCancelled(org.kie.api.event.rule.MatchCancelledEvent event)`
    `void` | `matchCreated(org.kie.api.event.rule.MatchCreatedEvent event)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TriggerRulesEventListener

          public TriggerRulesEventListener(org.kie.api.runtime.KieSession ksession)

  - ### Method Detail

    - #### matchCreated

          public void matchCreated(org.kie.api.event.rule.MatchCreatedEvent event)

      Specified by:
        `matchCreated` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### matchCancelled

          public void matchCancelled(org.kie.api.event.rule.MatchCancelledEvent event)

      Specified by:
        `matchCancelled` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### beforeMatchFired

          public void beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event)

      Specified by:
        `beforeMatchFired` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### afterMatchFired

          public void afterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event)

      Specified by:
        `afterMatchFired` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### agendaGroupPopped

          public void agendaGroupPopped(org.kie.api.event.rule.AgendaGroupPoppedEvent event)

      Specified by:
        `agendaGroupPopped` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### agendaGroupPushed

          public void agendaGroupPushed(org.kie.api.event.rule.AgendaGroupPushedEvent event)

      Specified by:
        `agendaGroupPushed` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### beforeRuleFlowGroupActivated

          public void beforeRuleFlowGroupActivated(org.kie.api.event.rule.RuleFlowGroupActivatedEvent event)

      Specified by:
        `beforeRuleFlowGroupActivated` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### afterRuleFlowGroupActivated

          public void afterRuleFlowGroupActivated(org.kie.api.event.rule.RuleFlowGroupActivatedEvent event)

      Specified by:
        `afterRuleFlowGroupActivated` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### beforeRuleFlowGroupDeactivated

          public void beforeRuleFlowGroupDeactivated(org.kie.api.event.rule.RuleFlowGroupDeactivatedEvent event)

      Specified by:
        `beforeRuleFlowGroupDeactivated` in interface `org.kie.api.event.rule.AgendaEventListener`

    - #### afterRuleFlowGroupDeactivated

          public void afterRuleFlowGroupDeactivated(org.kie.api.event.rule.RuleFlowGroupDeactivatedEvent event)

      Specified by:
        `afterRuleFlowGroupDeactivated` in interface `org.kie.api.event.rule.AgendaEventListener`

Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.