Process engine restart?

How to process engine restart ?
i am using embedded process engine.

Can you give more details about what you’re trying to achieve and why you think this will help.
Also - more details about your setup - common questions you should put the answer to are in the FAQ.

Hi @nrpatel,

the easy way: Restart your application where the engine is embedded in.

With code:

processEngine.close();

processEngineConfiguration.buildProcessEngine();

Have a look at https://docs.camunda.org/manual/7.14/user-guide/process-engine/process-engine-bootstrapping/#bootstrap-a-process-engine-using-the-java-api for further details.

Hope this helps, Ingo

1 Like

Thanks @Ingo_Richtsmeier

Hi @Ingo_Richtsmeier,

Try to close processEngine using

processEngine.close();

worry about the job executor or not ?
What happen jobs already picked by engine?

Hi @nrpatel,

looking at https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/ProcessEngineImpl.java#L167-L190

and digging into the shutdown() of the JobExecutor, you can relax: jobs are stopped gracefully.

Hope this helps, Ingo

1 Like

Thanks @Ingo_Richtsmeier