Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3946

scheduled notifications duplicated on restart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.12.1.GA
    • 7.11.1.GA
    • jBPM Core
    • 2021 Week 40-42 (from Oct 4), 2021 Week 43-45 (from Oct 25), 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th), 2022 Week 02-04 (from Jan 10)

    Description

      Starting a process with a HT with notifications, scheduled in future, a restart will cause timers to register outside GlobalService, causing a duplication when runtime manager for process is created and the deadline is reached:

       

      Enabling logger:

       

      After create the task and restart at deadline it shows:

       

      14:18:10,068 DEBUG [org.jbpm.services.task.deadlines.notifications.impl.NotificationListenerManager] (EJB default - 1) Sending notification org.kie.internal.task.api.model.NotificationEvent@22801779 to Custom listener with params org.jbpm.services.task.identity.DefaultUserInfo@22c841d1

      14:18:00,236 DEBUG [org.jbpm.services.task.deadlines.notifications.impl.NotificationListenerManager] (pool-16-thread-1) Sending notification org.kie.internal.task.api.model.NotificationEvent@6fa20529 to Custom listener with params org.jbpm.services.task.identity.DefaultUserInfo@22c841d1

       

      See notification from GlobalTimerService comes from (EJB default - 1) and from ScheduleFuture from (pool-16-thread-1)

       

      Related code:

       

      This code is triggered

      https://github.com/kiegroup/jbpm/blob/main/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/impl/TaskDeadlinesServiceImpl.java#L91-L126

       

      before timerservice is initialized:

       

      https://github.com/kiegroup/jbpm/blob/main/jbpm-runtime-manager/src/main/java/org/jbpm/runtime/manager/impl/RuntimeManagerFactoryImpl.java#L144

       

      Attachments

        Issue Links

          Activity

            People

              ftirados Francisco Javier Tirado Sarti
              afanjula@redhat.com Alberto Fanjul Alonso
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: