use of org.wso2.carbon.bpmn.rest.common.exception.BPMNOSGIServiceException in project carbon-business-process by wso2.
the class BPMNOSGIService method getGroupIdentityManager.
public static BPSGroupIdentityManager getGroupIdentityManager() {
ProcessEngineImpl processEngine = (ProcessEngineImpl) getBPMNEngineService().getProcessEngine();
ProcessEngineConfigurationImpl processEngineConfigurationImpl = null;
if (processEngine != null) {
processEngineConfigurationImpl = processEngine.getProcessEngineConfiguration();
if (processEngineConfigurationImpl != null) {
BPSGroupIdentityManager bpsGroupIdentityManager = null;
if (processEngineConfigurationImpl.getSessionFactories() != null) {
BPSGroupManagerFactory bpsGroupManagerFactory = (BPSGroupManagerFactory) processEngineConfigurationImpl.getSessionFactories().get(GroupIdentityManager.class);
return (BPSGroupIdentityManager) bpsGroupManagerFactory.openSession();
}
}
}
throw new BPMNOSGIServiceException("Business Process Server Group manager couldn't be identified");
}
Aggregations