@Override public ProcessEngine getDefaultProcessEngine() { ProcessEngine defaultProcessEngine = BpmPlatform.getDefaultProcessEngine(); if(defaultProcessEngine != null) { return defaultProcessEngine; } else { return ProcessEngines.getDefaultProcessEngine(false); } }
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(); }
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessEngineService(); }
@Override public ProcessEngine getDefaultProcessEngine() { ProcessEngine defaultProcessEngine = BpmPlatform.getDefaultProcessEngine(); if(defaultProcessEngine != null) { return defaultProcessEngine; } else { return ProcessEngines.getDefaultProcessEngine(false); } }
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessApplicationService(); }
public static ProcessEngine getDefaultProcessEngine() { return getProcessEngineService().getDefaultProcessEngine(); }
final ProcessEngine defaultProcessEngine = BpmPlatform.getDefaultProcessEngine(); try { logger.log(Level.INFO, "=== Ensure Clean Database ===");
private ProcessApplicationInfo getProcessApplicationDeploymentInfo(String applicationName) { ProcessApplicationInfo processApplicationInfo = BpmPlatform.getProcessApplicationService().getProcessApplicationInfo(applicationName); if (processApplicationInfo == null) { processApplicationInfo = BpmPlatform.getProcessApplicationService().getProcessApplicationInfo("/" + applicationName); } return processApplicationInfo; }
public static ProcessEngine getDefaultProcessEngine() { return getProcessEngineService().getDefaultProcessEngine(); }
public boolean doStartProcess() { BpmPlatform.getDefaultProcessEngine() .getRuntimeService() .startProcessInstanceByKey("callbackProcess"); return true; }
@Test public void testProcessApplicationName() { Set<String> paNames = BpmPlatform.getProcessApplicationService().getProcessApplicationNames(); Assert.assertEquals(1, paNames.size()); Assert.assertTrue(paNames.contains(CustomNameServletPA.NAME)); } }
@Produces @Named @ApplicationScoped public ProcessEngine processEngine() { ProcessEngine processEngine = BpmPlatform.getProcessEngineService().getDefaultProcessEngine(); if(processEngine != null) { return processEngine; } else { List<ProcessEngine> processEngines = BpmPlatform.getProcessEngineService().getProcessEngines(); if (processEngines != null && processEngines.size() == 1) { return processEngines.get(0); } else { return ProcessEngines.getDefaultProcessEngine(false); } } }
@Override public ProcessEngine getDefaultProcessEngine() { return BpmPlatform.getDefaultProcessEngine(); }
@Test @OperateOnDeployment("checkDeployment") public void testNoProcessApplicationIsDeployed() { Set<String> registeredPAs = BpmPlatform.getProcessApplicationService().getProcessApplicationNames(); Assert.assertTrue(registeredPAs.isEmpty()); } }
@Produces @ProcessEngineName("") public ProcessEngine processEngine(InjectionPoint ip) { ProcessEngineName annotation = ip.getAnnotated().getAnnotation(ProcessEngineName.class); String processEngineName = annotation.value(); if(processEngineName == null || processEngineName.length() == 0) { throw new ProcessEngineException("Cannot determine which process engine to inject: @ProcessEngineName must specify the name of a process engine."); } try { ProcessEngineService processEngineService = BpmPlatform.getProcessEngineService(); return processEngineService.getProcessEngine(processEngineName); }catch (Exception e) { throw new ProcessEngineException("Cannot find process engine named '"+processEngineName+"' specified using @ProcessEngineName: "+e.getMessage(), e); } }
@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)); }
@Before public void setEngines() { ProcessEngineService engineService = BpmPlatform.getProcessEngineService(); engine1 = engineService.getProcessEngine("engine1"); engine1Configuration = ((ProcessEngineImpl) engine1).getProcessEngineConfiguration(); }
public static void main(String... args) { SpringApplication.run(Application.class, args); // do default setup of platform ProcessEngine engine = BpmPlatform.getDefaultProcessEngine(); createDefaultUser(engine); //setCamundaEELicenseKey(engine); }