JBoss Community

Re: How to detect crashed process instance in jbpm 4.1 ?

created by Elisabeth Müller in jBPM - View the full discussion

Hi Marco,

thanks for your answer ,but the problem is a  little bit different.

The API works fine as long as the jbpm engine can treat the exception/error during crash and reflect this situation by updating the process instance status.

 

The problem is all about process recovery in case of server crash, e.g. the classical power outage.

If such an error happens, a process instance will recover in the last saved state. This means that you do not know, whether a transition to another node has been triggered already and you do not know which transition has been taken, if at all.

 

In this situation the API does not help, I think.

 

So potentially I have to implement a history of transistions in a transaction external to the hibernate session. That's the only workaround I can come up with.

Elisabeth

Reply to this message by going to Community

Start a new discussion in jBPM at Community