Package org.openengsb.core.api.context

Examples of org.openengsb.core.api.context.ContextCurrentService.createContext()


        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);
View Full Code Here


    @Ignore
    public void testSendEvent_shouldCallService() throws Exception {
        authenticateAsAdmin();
        addHelloWorldRule();
        ContextCurrentService contextService = getOsgiService(ContextCurrentService.class);
        contextService.createContext("42");
        ContextHolder.get().setCurrentContextId("42");

        Dictionary<String, Object> properties = new Hashtable<String, Object>();
        String[] clazzes = new String[]{ Domain.class.getName(), ExampleDomain.class.getName() };
        properties.put("id", "dummyLog");
View Full Code Here

    @Before
    public void setUp() throws Exception {
        ContextCurrentService contextService = getOsgiService(ContextCurrentService.class);
        if (!contextService.getAvailableContexts().contains("it-taskbox")) {
            contextService.createContext("it-taskbox");
        }
        ContextHolder.get().setCurrentContextId("it-taskbox");
        ruleManager = getOsgiService(RuleManager.class);
        workflowService = getOsgiService(WorkflowService.class);
        taskboxService = getOsgiService(TaskboxService.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.