use of org.wso2.siddhi.core.util.Scheduler in project carbon-business-process by wso2.
the class BPMNEngineWaitBeforeShutdownObserver method startingShutdown.
@Override
public void startingShutdown() {
log.info("Shutting down activiti process engine");
SubstitutionScheduler scheduler = BPMNServerHolder.getInstance().getSubstitutionScheduler();
if (scheduler != null) {
log.info("Shutting down the BPMN Substitution Scheduler");
scheduler.stop();
}
log.info("Beginning to close down the command context");
if (Context.getCommandContext() != null) {
Context.getCommandContext().close();
log.info("Completed the closing of command context");
}
ProcessEngines.destroy();
status = true;
}
Aggregations