@Test public void initRuntimeClient() { prepareInitRuntimeClient(); enableExtension(); System.setProperty(TASK_ASSIGNING_USER_SYSTEM_NAME, USER_SYSTEM_NAME); extension.init(kieServer, registry); verify(extension).createRuntimeClient(RUNTIME_URL, RUNTIME_USER, RUNTIME_PWD, Long.parseLong(RUNTIME_TIMEOUT)); }
private void initRuntimeClient() { String url = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_URL, "http: String user = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_USER, "wbadmin", value -> value); String pwd = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_PWD, null, value -> value); String pwdAlias = readSystemProperty(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, null, value -> value); if (isNotEmpty(pwdAlias)) { pwd = loadPasswordKey(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_PWD, pwd); } long timeout = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_TIMEOUT, 90000L, Long::parseLong); this.runtimeClient = createRuntimeClient(url, user, pwd, timeout); }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { private void initRuntimeClient() { String url = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_URL, "http: String user = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_USER, "wbadmin", value -> value); String pwd = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_PWD, null, value -> value); String pwdAlias = readSystemProperty(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, null, value -> value); if (isNotEmpty(pwdAlias)) { pwd = loadPasswordKey(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_PWD, pwd); } long timeout = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_TIMEOUT, 90000L, Long::parseLong); this.runtimeClient = createRuntimeClient(url, user, pwd, timeout); } }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { private void initRuntimeClient() { String url = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_URL, "http: String user = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_USER, "wbadmin", value -> value); String pwd = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_PWD, null, value -> value); String pwdAlias = readSystemProperty(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, null, value -> value); if (isNotEmpty(pwdAlias)) { pwd = loadPasswordKey(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_PWD, pwd); } long timeout = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_TIMEOUT, 90000L, Long::parseLong); this.runtimeClient = createRuntimeClient(url, user, pwd, timeout); }  }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { private void initRuntimeClient() { String url = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_URL, "http: String user = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_USER, "wbadmin", value -> value); String pwd = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_PWD, null, value -> value); String pwdAlias = readSystemProperty(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, null, value -> value); if (isNotEmpty(pwdAlias)) { pwd = loadPasswordKey(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_PWD, pwd); } long timeout = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_TIMEOUT, 90000L, Long::parseLong); this.runtimeClient = createRuntimeClient(url, user, pwd, timeout); }  @Override boolean isActive(); @Override void init(KieServerImpl kieServer, KieServerRegistry registry); @Override boolean isInitialized(); @Override void createContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void updateContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override boolean isUpdateContainerAllowed(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void disposeContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override List<Object> getAppComponents(SupportedTransports type); @Override T getAppComponents(Class<T> serviceType); @Override String getImplementedCapability(); @Override List<Object> getServices(); @Override String getExtensionName(); @Override Integer getStartOrder(); @Override String toString(); @Override void serverStarted(); @Override void destroy(KieServerImpl kieServer, KieServerRegistry registry); @Override List<Message> healthCheck(boolean report); }
TaskAssigningPlanningKieServerExtension implements KieServerExtension { private void initRuntimeClient() { String url = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_URL, "http: String user = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_USER, "wbadmin", value -> value); String pwd = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_PWD, null, value -> value); String pwdAlias = readSystemProperty(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, null, value -> value); if (isNotEmpty(pwdAlias)) { pwd = loadPasswordKey(TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_ALIAS, TASK_ASSIGNING_KEY_STORE_PROCESS_RUNTIME_PWD, pwd); } long timeout = readSystemProperty(TASK_ASSIGNING_PROCESS_RUNTIME_TIMEOUT, 90000L, Long::parseLong); this.runtimeClient = createRuntimeClient(url, user, pwd, timeout); }  @Override boolean isActive(); @Override void init(KieServerImpl kieServer, KieServerRegistry registry); @Override boolean isInitialized(); @Override void createContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void updateContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override boolean isUpdateContainerAllowed(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override void disposeContainer(String id, KieContainerInstance kieContainerInstance, Map<String, Object> parameters); @Override List<Object> getAppComponents(SupportedTransports type); @Override T getAppComponents(Class<T> serviceType); @Override String getImplementedCapability(); @Override List<Object> getServices(); @Override String getExtensionName(); @Override Integer getStartOrder(); @Override String toString(); @Override void serverStarted(); @Override void destroy(KieServerImpl kieServer, KieServerRegistry registry); @Override List<Message> healthCheck(boolean report);  }