Are you using at least READ_COMMITTED isolation in the DB?
If not, I think that before you finish, you'll find that you need to.
See
http://jira.jboss.org/jira/browse/JBPM-983
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131532#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...