[jboss-dev-forums] [Design of JBoss jBPM] - Transaction Management sync between JBPM and Application
Narasimha_Addanki
do-not-reply at jboss.com
Thu Mar 1 23:54:49 EST 2007
Hi All,
In our project, JBPM is used to drive the Status of Users while creating as users creation has many stages before a user status become live and one user status is independent of the another user.
We have defined a processdefinition for Users Creation like one process instance represents a single user.
Users creation workflow is provided with the status driving attributes by the application, then workflow determines the status of the user and returns to the application to store that at application database.
And the status of the user should also be maintained in the JBPM repository for driving the user status for future updations and for the retrieval to list the users based on the status they are in. A transaction is being maintained between JBPM updation and application database commit operations by handling "context close " facility to the application.
Its working pretty fine with one user creation at a time. At the time of bulk user creation, the application still make a method call iteratively and User creation workflow returning the status value but couldn't save the instance for the user as the "context close" is handled by the application and which will be called only on the successful dataupdation at application db. But the aplication is able to push the bulk user's data in to the database using spring hibernate capabilities and then JBPM context is being closed. By this we could make the last user's details (in the list ) only persisted in the JBPM database.
And the requirement is to have ALL the user's creation either successfull (commit) or unsuccessful (rollback)
Can we maintain the user's details(along with the evaluated status) ie processinstance temporary at a list or at any other place and save all the instances at a time once the application indicates the successful updation of its database
can you share your thoughts on this...
Regards
Narasimha
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024539#4024539
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024539
More information about the jboss-dev-forums
mailing list