cancel
Showing results for 
Search instead for 
Did you mean: 

What happens at server restart?

bodi
Champ in-the-making
Champ in-the-making
Hey,

What happens when a server is restarted after crash?
Will engine restart automatically ?
WIll aborded processes be restarted after server restart ?
Is server restartability after server crash, supported by engine
6 REPLIES 6

winko
Champ in-the-making
Champ in-the-making
No sadly not, you'll have to restart your database and web server manually:
ant h2.start tomcat.start

kanchan
Champ in-the-making
Champ in-the-making
But is there any API or provision in Activiti to resume from last engine crash state ?

frederikherema1
Star Contributor
Star Contributor
@Winko: Quite obvious you should start your container and DB again, don't think he was talking about that Smiley Wink

Activiti supports recovery in case of error/restart by being a transactional state machine at the lowest level.
In case of error, the transaction will roll back to the previous consistent state, which is a wait state (eg a user task).

If Activiti crashes, the database will rollback the transaction that Activiti was executing, hence restoring the state of the business process to the previously stable state. If you are using Activiti in a persistent way (ie. if you are using the services http://activiti.org/userguide/index.html#N1023F, this is the behaviour of the engine).

But is there any API or provision in Activiti to resume from last engine crash state ?

trademak
Star Contributor
Star Contributor
That's done automatically. Activiti starts processing all remaining jobs in the database automatically.

Best regards,

bodi
Champ in-the-making
Champ in-the-making
Yes, I meant business process

Many thanks