Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4583

Inconsistence between TriggerRulesEventListener and examples

    XMLWordPrintable

Details

    Description

      TriggerRulesEventListener has a javadoc:

      /**
       * Dedicated AgendaEventListener that will fireAllRules as soon as:
       * <ul>
       *  <li>match is created</li>
       *  <li>after rule flow group is activated</li>
       * </ul>
       * 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.
       */
      

      but it call rules only on afterRuleFlowGroupActivated

      2) https://github.com/marianbuenosayres/jBPM6-Developer-Guide/blob/b523618e89e93f2556a4f0b5b8153f7ded9c5b42/chapter-03/BPMN2-scenarios/src/test/java/com/wordpress/marianbuenosayres/bpmn2/SprintManagementScenarioTest.java
      calls rules on both afterRuleFlowGroupActivated and on matchCreated

      What is really a difference?
      What combination is correct?
      Could you document it at least on AgendaEventListener level what each event means?

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            matihost Mateusz Nowakowski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: