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

Process Instance Log persisted twice for same process instance.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jBPM 6.4.0.Beta1
    • Fix Version/s: jBPM 6.4.0.Final
    • Component/s: Runtime Engine
    • Labels:
      None
    • Environment:

      CentOS 7.1.1503, Docker, OpenJDK 1.8.0_51, JBoss BPMSuite 6.2.0.GA

    • Steps to Reproduce:
      Hide

      1) Clone the following repository in JBoss BPMSuite 6.2.0.GA: https://github.com/DuncanDoyle/bpmsuite-duplicate-process-instance-log-entries
      2) Build and deploy the project.
      3) Start the "ht-process" and enter value in the "processInput" process variable.
      4) The process will start, wait 10 seconds for the timer to fire. This will send a signal which will start (and complete) the other 2 processes and will complete the first process.
      5) Check the "Process Instances -> Completed" view and observer that there is 1 entry for the "ht-process", but 2 entries for both "sub-process-one" and "sub-process_two"
      6) Check the "processinstancelog" database table and observe that it contains 1 entry for the "ht-process" and 2 entries for both "sub-process-one" and "sub-process_two".

      Show
      1) Clone the following repository in JBoss BPMSuite 6.2.0.GA: https://github.com/DuncanDoyle/bpmsuite-duplicate-process-instance-log-entries 2) Build and deploy the project. 3) Start the "ht-process" and enter value in the "processInput" process variable. 4) The process will start, wait 10 seconds for the timer to fire. This will send a signal which will start (and complete) the other 2 processes and will complete the first process. 5) Check the "Process Instances -> Completed" view and observer that there is 1 entry for the "ht-process", but 2 entries for both "sub-process-one" and "sub-process_two" 6) Check the "processinstancelog" database table and observe that it contains 1 entry for the "ht-process" and 2 entries for both "sub-process-one" and "sub-process_two".
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      I have a main process with a HumanTask. The HumanTask has a boundary timer event (10 seconds), which, when fired, will sent a signal (intermediate signal event). This signal will start 2 other processes. (the process doesn't make a lot of sense, just a sample to show the issue).

      When I run this process in JBoss BPMSuite 6.2.0.GA, I see the main process and the other 2 processes execute and complete. However, for both processes that are signalled, 2 entries are created in the 'processinstancelog' table in the DB, which causes these processes to appear twice in the "Process Instances -> Completed" view.

      This only seems to happen when I run the "Per Process Instance" strategy. When I run the "Singleton" strategy, everything works as expected. I had a short look at JPAWorkingMemoryDBLogger.fireAfterProcessCompleted( .... ), but that class gets 1 event per process completion.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                McCloud Duncan Doyle
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: