public static ProcessEngine getDefaultProcessEngine() { return getProcessEngineService().getDefaultProcessEngine(); }
public List<ProcessEngine> getProcessEngines() { return processEngineServiceDelegate.getProcessEngines(); }
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessEngineService(); }
@Before public void setEngines() { ProcessEngineService engineService = BpmPlatform.getProcessEngineService(); engine1 = engineService.getProcessEngine("engine1"); engine1Configuration = ((ProcessEngineImpl) engine1).getProcessEngineConfiguration(); }
@Override public ProcessEngine getDefaultProcessEngine() { ProcessEngine defaultProcessEngine = BpmPlatform.getDefaultProcessEngine(); if(defaultProcessEngine != null) { return defaultProcessEngine; } else { return ProcessEngines.getDefaultProcessEngine(false); } }
private ProcessApplicationInfo getProcessApplicationDeploymentInfo(String applicationName) { ProcessApplicationInfo processApplicationInfo = BpmPlatform.getProcessApplicationService().getProcessApplicationInfo(applicationName); if (processApplicationInfo == null) { processApplicationInfo = BpmPlatform.getProcessApplicationService().getProcessApplicationInfo("/" + applicationName); } return processApplicationInfo; }
@Before public void setEngines() { ProcessEngineService engineService = BpmPlatform.getProcessEngineService(); engine1 = engineService.getProcessEngine("engine1"); // unregister process application so that context switch cannot be performed unregisterProcessApplication(); }
public ProcessEngine getDefaultProcessEngine() { return processEngineServiceDelegate.getDefaultProcessEngine(); }
@Test public void testProcessApplicationName() { Set<String> paNames = BpmPlatform.getProcessApplicationService().getProcessApplicationNames(); Assert.assertEquals(1, paNames.size()); Assert.assertTrue(paNames.contains(CustomNameServletPA.NAME)); } }
public ProcessApplicationInfo getProcessApplicationInfo(String processApplicationName) { return processApplicationServiceDelegate.getProcessApplicationInfo(processApplicationName); }
public ProcessEngine getProcessEngine(String name) { return processEngineServiceDelegate.getProcessEngine(name); }
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessApplicationService(); }
public Set<String> getProcessApplicationNames() { return processApplicationServiceDelegate.getProcessApplicationNames(); }
public Set<String> getProcessEngineNames() { return processEngineServiceDelegate.getProcessEngineNames(); }
public static ProcessEngine getDefaultProcessEngine() { return getProcessEngineService().getDefaultProcessEngine(); }
@Override public ProcessEngine getDefaultProcessEngine() { ProcessEngine defaultProcessEngine = BpmPlatform.getDefaultProcessEngine(); if(defaultProcessEngine != null) { return defaultProcessEngine; } else { return ProcessEngines.getDefaultProcessEngine(false); } }
@Test public void shouldDeployApp() { Assert.assertNotNull(BpmPlatform.getProcessApplicationService() .getProcessApplicationInfo(PaDataformatAndPostDeployApp.PA_NAME)); }
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessEngineService(); }
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessApplicationService(); }
@Test public void test() { ProcessApplicationService processApplicationService = BpmPlatform.getProcessApplicationService(); Assert.assertNotNull(processApplicationService.getProcessApplicationInfo("pa")); }