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

Process Instance Log persisted twice for same process instance.

    XMLWordPrintable

Details

    • NEW
    • NEW
    • 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".

    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.

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            rhn-gps-ddoyle Duncan Doyle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: