2 Replies Latest reply on Jul 31, 2012 2:07 PM by malabalu

    joining the transaction in jbpm with transaction of the calling application.

    malabalu

      We are running jbpm with openJPA instead of Bitronix and JTA . We are using seperate jpaTransactionManager for the jbpm. Is there a way to specify to jbpm to join the transaction from jbpm with the transaction of the calling application .

        • 1. Re: joining the transaction in jbpm with transaction of the calling application.
          swiderski.maciej

          jbpm will join transaction if one is already active otherwise will start new transaction.

           

          HTH

          • 2. Re: joining the transaction in jbpm with transaction of the calling application.
            malabalu

            thank you.I was able to verify that the transaction is getting joined but we are facing a new issue now. The processinstanceinfo that is gettign persisted does not have the state active and all of its up to date info at savpoint. We can retrieve only the basic first info from it and so we cannot process the signal further.

             

            While debugging, I found that update() method in processinstanceinfo class has a preUpdate annotation but doesnt get called at the commit of the transaction.The idea is to keep updating the processinstance variable of the processinstanceinfo entity once it is created and so while commiting , it will trigger the update() method which will then update the byteArray (blob) filed with current process info.

             

            I am not sure if this is happenign because of the processinstance variable is transient.

             

             

            Thanks

            Malathi