use of org.camunda.bpm.cockpit.CockpitRuntimeDelegate in project AJSC by att.
the class ProcessEnginesFilter method getDefaultEngineName.
protected String getDefaultEngineName() {
CockpitRuntimeDelegate runtimeDelegate = Cockpit.getRuntimeDelegate();
Set<String> processEngineNames = runtimeDelegate.getProcessEngineNames();
if (processEngineNames.isEmpty()) {
throw new IllegalWebAppConfigurationException("No process engine found. camunda Webapp cannot work without a process engine. ");
} else {
ProcessEngine defaultProcessEngine = runtimeDelegate.getDefaultProcessEngine();
if (defaultProcessEngine != null) {
return defaultProcessEngine.getName();
} else {
return processEngineNames.iterator().next();
}
}
}
Aggregations