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

Clean Tasks from DB when process is aborted in a sub-process

    Details

    • Steps to Reproduce:
      Hide

      Create a process:

      start -> human task ─> sub-process -> end
                             └── start -> human task (abort the pinstance) -> end
                                                 
      
      Show
      Create a process: start -> human task ─> sub-process -> end    └── start -> human task (abort the pinstance) -> end

      Description

      The problem appears with processes containing a human task and a sub-process where the sub-process also contains a human task.

      If the whole process is completed the registered TaskCleanUpProcessEventListener is called for every completed sub-process and the tasks are cleaned up from the task table.

      However, if the process is aborted while executing a sub-process, the TaskCleanUpProcessEventListener is called only for the directly started process.

      This leaves the task entry from the other human task (started from the sub-process) in the task table.

        Gliffy Diagrams

          Attachments

          1. ht-main.bpmn
            5 kB
          2. ht-sub.bpmn
            4 kB
          3. HTTestWithSubProcess.java
            6 kB

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                akoskm Akos Kemives
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: