2 Replies Latest reply on Feb 23, 2015 5:33 AM by eshevchenko

    Clustering in jBPM V6 - Using parallel gateways

    eshevchenko

      I have done server setup according to Clustering in jBPM v6 | Planet JBoss Developer. Does jBPM V6 can execute tasks on different jBPM servers in cluster if they are setup with parallel gateway?

      For example(see attachment), is it possible to run "Link Records A" on one instance of jBPM server and "Link Records B" on another jBPM server, when both instances were configured in clustered environment?

        • 1. Re: Clustering in jBPM V6 - Using parallel gateways
          swiderski.maciej

          no, jBPM will execute activities on the same jvm. If you would like to achieve cross cluster member processing of single process instance you could create number of async tasks that are backed by jbpm executor. WIth that tasks will be picked up by all cluster members but the order is not guaranteed.

           

          One important note with this is since you are operating on same process instance it will cause race conditions on db side for storing updates to process instance since they will be done in parallel. Especially when async tasks are taking pretty much same amount of time.

           

          HTH

          1 of 1 people found this helpful
          • 2. Re: Clustering in jBPM V6 - Using parallel gateways
            eshevchenko

            Thanks Maciej, sounds good! I should investigate, how to work with async tasks.