[jboss-user] [JBoss jBPM] - Update of the root token after one of the sub-tokens in the
do-not-reply at jboss.com
Tue Mar 4 18:08:58 EST 2008
I have the following scenario:
1. Fork in the process that splits it into 3 branches
2. Each branch has one task. Each task will be assigned to the different user.
3. Each task has only one leaving transition - to join node.
4. One user completes the task. Sub-token advances to the join node.
Database record for the sub-token is updated - ok.
Root token remains on the same node (fork) but is also updated. Only one field changes in the root token record - nextlogindex. It forces also the update of the version field.
Is this update (that changes root token) really needed?
This behaviour creates a problem for the stateful application when several users work with the same process in parallel (each one on his own task in parallel process branch). Hibernate StaleObjectException is very probable.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134074#4134074
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134074
More information about the jboss-user