Examples of startProcess()


Examples of org.drools.runtime.StatefulKnowledgeSession.startProcess()

       
        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
        List<String> list = new ArrayList<String>();
        ksession.setGlobal( "list", list );
       
        ksession.startProcess( "process name" );
       
        assertEquals( 1, list.size() );
        assertEquals( "action node was here", list.get(0) );       
    }
}
View Full Code Here

Examples of org.encuestame.business.setup.StartupProcess.startProcess()

            throw new IllegalStateException("home not valid, please set a home property in the configuration file");
        } else {
            WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext);
            final StartupProcess startup = (StartupProcess) ctx.getBean("applicationStartup");
            try {
               startup.startProcess();
               log.info("**********************************************");
               log.info("*     ENCUESTAME IS RUNNING SUCCESSFULLY      *");
               log.info("*        http://www.encuestame.org           *");
               log.info("**********************************************");
            } catch (Exception e) {
View Full Code Here

Examples of org.kie.api.runtime.KieSession.startProcess()

        if (data != null) {
            for (Object o: data) {
                ksession.insert(o);
            }
        }
        ProcessInstance processInstance = (ProcessInstance) ksession.startProcess(processId, parameters);
        if ( this.outIdentifier != null ) {
            ((ExecutionResultImpl) ((KnowledgeCommandContext) context).getExecutionResults()).getResults().put(this.outIdentifier,
                                                                                                               processInstance.getId());
        }
        return processInstance;
View Full Code Here

Examples of org.kie.internal.runtime.StatefulKnowledgeSession.startProcess()

        kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );

        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
        setExec( ksession );

        ProcessInstance processInstance = ksession.startProcess( "org.drools.core.event" );
        assertEquals( ProcessInstance.STATE_ACTIVE,
                      processInstance.getState() );

        execContent( "testProcessInstanceSignalEvent.in.1" );
View Full Code Here

Examples of org.kie.runtime.KieSession.startProcess()

        log.info( "---> create new SingleSessionCommandService" );

        int sessionId = service.getId();
        log.info( "---> created SingleSessionCommandService id: " + sessionId );

        ProcessInstance processInstance = service.startProcess( "org.drools.test.TestProcess" );
        log.info( "Started process instance {}",
                  processInstance.getId() );

        TestWorkItemHandler handler = TestWorkItemHandler.getInstance();
        WorkItem workItem = handler.getWorkItem();
View Full Code Here

Examples of org.kie.runtime.StatefulKnowledgeSession.startProcess()

        if (data != null) {
            for (Object o: data) {
                ksession.insert(o);
            }
        }
        ProcessInstance processInstance = (ProcessInstance) ksession.startProcess(processId, parameters);
        if ( this.outIdentifier != null ) {
            ((ExecutionResultImpl) ((KnowledgeCommandContext) context).getExecutionResults()).getResults().put(this.outIdentifier,
                                                                                                               processInstance.getId());
        }
        return processInstance;
View Full Code Here

Examples of org.mule.module.jbpm.Jbpm.startProcess()

        // Deploy the process
        jbpm.deployProcess("simple-process.jpdl.xml");

        // Start the process
        Object process = jbpm.startProcess("simple", null, null);
        assertNotNull(process);
        Object processId = jbpm.getId(process);
       
        // The process should be started and in a wait state.
        process = jbpm.lookupProcess(processId);
View Full Code Here

Examples of org.rzo.yajsw.wrapper.WrappedService.startProcess()

  {
    WrappedService w = getService();
    System.out.println("************* STARTING " + w.getServiceName() + " ***********************");
    System.out.println();

    w.startProcess();
    int i = 0;
    while (!w.isRunning() && i < 10)
    {
      i++;
      try
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.