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 ?