JBoss Community

last_read_date update causing StaleObjectStateException

created by Richard Evans in jBPM - View the full discussion

Hello there,

 

jbpm 5.3.0.Final

 

I have a server running jbpm happily on a couple of load-balanced hosts. All fine until I use a simple Web interface to view details of a running peocess. This UI calls kSession.getProcessInstance(id) to access process variables.  The server handling that process promptly gets a hibernate StaleObjectStateException. The immediate cause seems to be that getProcessInstance generates an update to process_instance_info.last_read_date. The server falls over when attempting update a process following an event.

 

What I am attempting to do seems reasonable - providing a readonly view to an in-flight process. Is there something flawed in my approach? If I removed the call to updateLastReadDate() in JPAProcessInstanceManager would there be any repercussions other than an inaccurate value in the field?

 

Thanks for any help.

Richard

Reply to this message by going to Community

Start a new discussion in jBPM at Community