cancel
Showing results for 
Search instead for 
Did you mean: 

How process failover is handled on single nodes

hiravgandhi
Champ in-the-making
Champ in-the-making
I have seen the http://forums.activiti.org/content/process-failover-cluster thread, but I am a little curious as to how failover works on a single node. Let's say that I have a process with 9 service tasks. I make the 1st, 4th and 7th service tasks asynchronous. Let's say that the 5th task is about to be started when the node goes down. When it comes back up, how is reinitiate of the process handled? Where does execution start? And how does one monitor which processes have failed and/or succeeded?
1 REPLY 1

trademak
Star Contributor
Star Contributor
Activiti commits the database transaction when it reaches a wait state (like a user task or an asynchronous task) or when the process is ended. So in your example the 5th task is executed in the same transaction as the 4th asynchronous task. Because the node goes down, this database transaction is not committed and the database state is still in the 4th asynchronous task. When the Activiti Engine is started again, the job executor will poll for remaining jobs to be executed and the process instance will continue again from the 4th task.

If you mean with failed processes, failed jobs then we have a JobQuery that you can use to query on these failed jobs.

Best regards,