0 Replies Latest reply on Oct 23, 2013 5:13 AM by Hari Kumar

    JBPM - Data getting commited to custom tables only after workflow execution completes

    Hari Kumar Newbie

      Hi all,



      I have a implementation as follows :



      1) I have some tasks with custom work item handlers registered.

      2) From the workitem handler i call some DAO methods to insert/update data in the database.

      3) As the data is being persisted from a work item handler (transaction is managed by JBPM using JTA) i just begin the transaction, dont commit it else i get error saying transaction cannot be commited in a managed transaction.



      Issue :  When i insert data in the custom tables, the data is getting commited after the workflow completes or goes to wait state. I can see the added rows only after the execution is complete. Why is this happening ? Any pointer would be helpful ?