Gracefully shutdown embedded Process Engine

Hi all,

I created a simple java main app which instantiates a ProcessEngine using ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().
This engine connects to the database and executes tasks.

Under certain conditions i want to shutdown the application in a controlled manner, this is, without interrupting any ongoing task.

Is there a graceful shutdown in the ProcessEngine java api?


Hi @Miguel,

please have a look at this thread (Thinking about the problems caused by process engine restart) which should give you some insights.

Hope this helps, Ingo

Thanks @Ingo_Richtsmeier for your response, that thread is really interesting,
I’m surprised its not mentioned ProcessEngineConfigurationImpl#shutdown method because it looks like performing the graceful shutdown we are looking for, I will reply there to see what they think.