1 Reply Latest reply on Jul 20, 2009 10:40 AM by Ronald van Kuijk

    JBPM 3 Concurrent Process Instances

    a francis Newbie

      I was trying to run a very simple continuous workflow and verify that process instances that run at the same time run in parallel, but my testing so far seems to indicate they always run in sequence.

      Process instance steps through Node1, Node2, Node3 and then ends. Multiple process instances can be run in parallel with eachother.

      Each node makes a call to an external system via a node(currently just outputting the Node's name and a counter ~50 times), but when I do this with my current configuration the output is always sequential.

      Output - A1,A2,A3,A4,B1,B2,B3,B4
      Expected - A1,A2,B1,A3,B2,A4,B3,B4 (or similar)

      Currently I'm using MYSQL as my backend with 5 JobExecutorThreads and <transaction-isolation>REPEATABLE_READ</transaction-isolation>.

      Is what I'm trying to do possible? Or are there more configurations I need to make. Thanks in advance.

        • 1. Re: JBPM 3 Concurrent Process Instances
          Ronald van Kuijk Master

          I assume you start the processes in one thread in sequence, then they run in sequence. If you start them from multiple threads, you have multiple instances. You can also use the async functionality where jobs/nodes are run in parallel.

          Keep in mind that jBPM is not realy a threading server.

          For more details, I suggest searching the forum for posts with e.g. concurrency in the topic and or async etc..