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

Spring auto registration doesn’t seem to work for AgendaEventListener

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.16.0.Final
    • 7.14.0.Final
    • KieServer
    • None
    • 1
    • NEW
    • NEW
    • 2018 Week 48-50

    Description

      I have modified 03-tutorial-handler-listener-business-application to include an AgendaEventListener to report what rules are fired:

      @Component
      public class MyAgendaEventListener extends DefaultAgendaEventListener {

      @Override
      public void afterMatchFired(AfterMatchFiredEvent event)

      { System.out.println("afterMatchFired " + event); }

      }

      It is almost identical to the included MyProcessEventListener example.
      I have added some rules that definitely get fired, but MyAgendaEventListener is not been called!

      This class is a Spring component (same like MyProcessEventListener)  and I can confirm that it gets instantiated when the business application starts up. However, the Spring auto registration doesn't seem to work for the AgendaEventListener.

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            jimwest362 Jim West (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: