-
1. Re: Transaction Management sync between JBPM and Application
narasimha_addanki Mar 3, 2007 7:47 AM (in response to narasimha_addanki)To cater the bussiness requirement am creating those many Context Instances as many number of users are being created at the application level.
The Process is executed for every individual user at JBPM iteratively and the context that was opened, process instance id and user status are stored in a collections object. This object is passed to the application for reading the status of the user and pushing the value objects in to the DB. Once the data placing in to application db is successful then application sends the collections object which only contains the context instances' list and process instances' list.
Comit operations is made into a transaction by saving and closing the jbpm context in the same order in which they were created.
And need to be ready with the delete operations if any exception happend at mid of the closing jbpm context operations
Please provide some value addition for the approach by providing your thoughts