Examples of newRuntimeEngine()


Examples of org.kie.services.client.api.RemoteJmsRuntimeEngineFactory.newRuntimeEngine()

            .addUserName(user)
            .addPassword(password)
            .buildFactory();

        // Interface with JMS api
        RuntimeEngine engine = remoteJmsFactory.newRuntimeEngine();
        KieSession ksession = engine.getKieSession();
       
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("paramName", new MyType("name", 23));
        ProcessInstance processInstance = ksession.startProcess("com.burns.reactor.maintenance.cycle", params);
View Full Code Here

Examples of org.kie.services.client.api.RemoteJmsRuntimeEngineFactory.newRuntimeEngine()

                    .addTaskServiceQueue(mock(Queue.class))
                    .addResponseQueue(mock(Queue.class))
                    .addConnectionFactory(mock(ConnectionFactory.class))
                    .buildFactory();
           
            jmsRuntimeFactory.newRuntimeEngine().getKieSession();
            fail( "A ksession queue is required for a ksession!");
        } catch( MissingRequiredInfoException e) {
            // expected
        }
       
View Full Code Here

Examples of org.kie.services.client.api.RemoteJmsRuntimeEngineFactory.newRuntimeEngine()

                    .addKieSessionQueue(mock(Queue.class))
                    .addResponseQueue(mock(Queue.class))
                    .addConnectionFactory(mock(ConnectionFactory.class))
                    .buildFactory();
           
            jmsRuntimeFactory.newRuntimeEngine().getTaskService();
            fail( "A task service queue is always required!");
        } catch( MissingRequiredInfoException e) {
            // expected
        }
       
View Full Code Here

Examples of org.kie.services.client.api.RemoteRuntimeEngineFactory.newRuntimeEngine()

            .addUserName(user)
            .addPassword(password)
            .buildFactory();

        // Create KieSession and TaskService instances and use them
        RemoteRuntimeEngine engine = restSessionFactory.newRuntimeEngine();
        KieSession ksession = engine.getKieSession();
        TaskService taskService = engine.getTaskService();

        // Each opertion on a KieSession, TaskService or AuditLogService (client) instance
        // sends a request for the operation to the server side and waits for the response
View Full Code Here

Examples of org.kie.services.client.api.RemoteRuntimeEngineFactory.newRuntimeEngine()

                .addJbossServerUrl(serverUrl)
                .addUserName(user)
                .addPassword(password)
                .buildFactory();
      
        engine = jmsRuntimeFactory.newRuntimeEngine();
    }
  
    /**
     * With the introduction of the fluent/builder API in 6.0.x, we could do this:
     *
 
View Full Code Here

Examples of org.kie.services.client.api.RemoteRuntimeEngineFactory.newRuntimeEngine()

                .addUserName("user")
                .addPassword("pass")
                .addUrl(new URL("http://localhost:8080/business-central"))
                .buildFactory();
       
        RuntimeEngine runtimeEngine = factory.newRuntimeEngine();
        try {
            runtimeEngine.getTaskService().claim(23l, "user");
        } catch( RemoteCommunicationException rce ) {
            // expected
        }
View Full Code Here

Examples of org.kie.services.client.api.RemoteRuntimeEngineFactory.newRuntimeEngine()

                .addKeystoreLocation("ssl/client_keystore.jks")
                .useKeystoreAsTruststore()
                .useSsl(true)
                .buildFactory();
       
        runtimeEngine = factory.newRuntimeEngine();
        try {
            runtimeEngine.getTaskService().claim(23l, "user");
            fail( "This should have failed because there's no server running... ");
        } catch( RemoteCommunicationException rce ) {
            logger.info("The " + NoSuchAlgorithmException.class.getSimpleName() + " above is expected, nothing is wrong.");
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.