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

ProcessInstance is not set to ACTIVE after startProcessInstance returns

XMLWordPrintable

    • Hide

      Unfortunately this behavior is only observed on the system of a client and we haven't been able to reproduce it on our system. The setup of the system might cause I/O-exceptions. However the log around the times we observed this behavior is clean.
      Is it possible that jBPM silently handles errors without informing us causing this inconsistent DB state?

      Show
      Unfortunately this behavior is only observed on the system of a client and we haven't been able to reproduce it on our system. The setup of the system might cause I/O-exceptions. However the log around the times we observed this behavior is clean. Is it possible that jBPM silently handles errors without informing us causing this inconsistent DB state?

      We use jBPM with persistence and setup the environment. We then use createProcessInstance and startProcessInstance to initiate a process.

      This process contains a callActivity which contains a (Receive) Task that doesn't immediately call completeWorkItem and thus causes startProcessInstance to return.

      In some rare cases we now observe a DB state in which the parent process instance is in state PENDING while the callActivity process instance as well as the workItem are in state ACTIVE. As a result asking the parent process instance for active Nodes returns an empty Collection.

      During further investigation we called startProcessInstance with an active transaction which we committed after the method returned. In this case we called getProcessInstance and after that getNodeInstances once before the commit and once in a separate transaction after the commit. The first time we received the instance of the active subprocess the second time we again received an empty Collection. The commit was performed without any Exceptions.

              swiderski.maciej Maciej Swiderski (Inactive)
              nilsmiehemorpho Nils Miehe (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: