In the meanwhile I've implemented this approach. And it solves the problem.
But I can't catch the exception very early on. So my process produces ugly stack traces upon unsuccesful commits. I'm not sure whether replace the DbPersistenceService(Factory) (through the service definition in the jbpm.cfg.xml) would be adviseable. I risk bring a bunch of other things. Is there a better way? Best regards, Johan | [oe2] AbstractFlushingEventListener : Could not synchronize database state with session | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#7110] | at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1635) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2208) | at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2118) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2374) | at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:84) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141) | at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:980) | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:353) | at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:162) | at org.jbpm.svc.Services.close(Services.java:211) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | at JBpmTest.JBpmOeTest.closeContext(JBpmOeTest.java:331) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013703#4013703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013703 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user