Clean Engine shutdown
This feature is only available for JEE version 6 and higher
In automated environments, Engine Service nodes may start up and close down automatically and may interrupt busy workflows. This will result in tasks being interrupted midway and getting stuck in interim state until they are recovered.
JEE beans can have a
@PreDestroy method that will be run before the node is shut down. This method can then block the process until all engine services have successfully stopped.
Since the EngineServices will be running in other threads, the communication will happen through the persisted status of the EngineNodeServices.