String httpPort = getConfigProperty("org.ops4j.pax.web", "org.osgi.service.http.port");
pageEntryUrl = "http://localhost:" + httpPort + "/openengsb/tasks/?context=" + CONTEXT;
webClient = new WebClient();
ContextCurrentService contextService = getOsgiService(ContextCurrentService.class);
if (!contextService.getAvailableContexts().contains(CONTEXT)) {
contextService.createContext(CONTEXT);
}
ContextHolder.get().setCurrentContextId(CONTEXT);
ruleManager = getOsgiService(RuleManager.class);
workflowService = getOsgiService(WorkflowService.class);
taskboxService = getOsgiService(WebTaskboxService.class);