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

Timer instance incorrectly removed upon process execution error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.11.1.GA
    • 7.9.1.GA
    • jBPM Core
      • RHPAM 7.9.1 / kie-server
      • EJB timers with DB persistence
    • False
    • False
    • CR1
    • +
    • Undefined
    • Hide

      Using the attached reproducer:

      1. Run the sh script to create the container and start a process instance
      2. Check the JBOSS_EJB_TIMER table, it should contain 2 rows (1 for the 30s timer, 1 for the 2min timer)
      3. Wait for the 30s timer to execute, it will result in an exception
      4. Check the JBOSS_EJB_TIMER table again, now both records are removed
        The expectation is that the 2min timer is still active.
      Show
      Using the attached reproducer: Run the sh script to create the container and start a process instance Check the JBOSS_EJB_TIMER table, it should contain 2 rows (1 for the 30s timer, 1 for the 2min timer) Wait for the 30s timer to execute, it will result in an exception Check the JBOSS_EJB_TIMER table again, now both records are removed The expectation is that the 2min timer is still active.
    • 2021 Week 16-18 (from Apr 19), 2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31), 2021 Week 25-27 (from Jun 21)

      A process contains two execution branches:

      1. Branch 1: Event sub-process with 30s timer
      2. Branch 2: HT node with 2min boundary timer

      Branch 1 encounters an error when the timer executes. At this point, the 2min timer of the other branch is removed by the engine:

      15:40:53,380 DEBUG [org.jbpm.services.ejb.timer.EJBTimerScheduler] (EJB default - 1) Job handle EjbGlobalJobHandle [uuid=43604-27573-Human Task-2] does match timer and is going to be canceled
      

      The expectation is that the 2min timer is still active despite the error.

        1. test-timer-fail.bpmn
          9 kB
        2. image.jpg
          image.jpg
          11 kB
        3. case02926724-reproducer.zip
          24 kB

              elguardian@gmail.com Enrique González Martínez (Inactive)
              rhn-support-mputz Martin Weiler (Inactive)
              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:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: