Package org.openengsb.core.workflow.api

Examples of org.openengsb.core.workflow.api.WorkflowService


            new PaxWicketSpringBeanComponentInjector(tester.getApplication(), context));
    }

    @SuppressWarnings("unchecked")
    private void setUpSendEventPage() {
        WorkflowService eventService = mock(WorkflowService.class);
        context.putBean("eventService", eventService);
        List<Class<? extends Event>> eventClasses = Arrays.<Class<? extends Event>> asList(NullEvent.class);
        tester.startPage(new SendEventPage(eventClasses));
        tester.startPage(Index.class);
    }
View Full Code Here


                + "then\n"
                + "    example2.doSomethingWithMessage(\"42\");\n"
        );

        ContextHolder.get().setCurrentContextId("foo");
        WorkflowService workflowService = getOsgiService(WorkflowService.class);

        authenticate("admin", "password");
        workflowService.processEvent(new LogEvent());

        assertThat(exampleMock.wasCalled, is(true));
    }
View Full Code Here

                + "   ExampleDomain origin = (ExampleDomain) OsgiHelper.getResponseProxy(l, ExampleDomain.class);"
                + "   origin.doSomethingWithMessage(\"42\");"
        );

        ContextHolder.get().setCurrentContextId("foo");
        WorkflowService workflowService = getOsgiService(WorkflowService.class);
        LogEvent event = new LogEvent();
        event.setOrigin("example2");
        authenticateAsAdmin();
        workflowService.processEvent(event);

        assertThat(exampleMock.wasCalled, is(true));
    }
View Full Code Here

    @Test
    @Ignore
    public void testRaiseEvent_shouldForwardToConnector() throws Exception {
        ContextHolder.get().setCurrentContextId("foo");
        WorkflowService workflowService = getOsgiService(WorkflowService.class);
        authenticateAsAdmin();
        Event event = new Event();
        workflowService.processEvent(event);
        assertThat(exampleMock.lastEvent, equalTo(event));
    }
View Full Code Here

        Map<String, String> attributes = new HashMap<String, String>();
        Map<String, Object> properties = new HashMap<String, Object>();
        attributes.put("mixin.1", EventSupport.class.getName());
        remoteConnector.start(new MyExampleConnector(eventRef),
                new ConnectorDescription("example", "external-connector-proxy", attributes, properties));
        WorkflowService workflowService = getOsgiService(WorkflowService.class);
        Event event = new Event("test");
        ContextHolder.get().setCurrentContextId("foo");
        authenticateAsAdmin();
        workflowService.processEvent(event);
        assertThat(eventRef.get().getName(), equalTo("test"));
    }
View Full Code Here

                    + "(ExampleRequestModel) "
                    + "ekbTransformationService.performTransformation(source, target, object);"
                    + "  example2.doSomethingWithModel(model);\n");

        ContextHolder.get().setCurrentContextId("foo");
        WorkflowService workflowService = getOsgiService(WorkflowService.class);

        authenticate("admin", "password");
        workflowService.processEvent(new LogEvent());

        transformationEngine.deleteDescriptionsByFile("testDescription.transformation");
        ExampleRequestModel result = exampleMock.getModel();
        assertThat(result.getName(), is("test"));
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.workflow.api.WorkflowService

Copyright © 2018 www.massapicom. 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.