Package org.kie.services.client.api.command

Examples of org.kie.services.client.api.command.RemoteRuntimeEngine


     *
     *  Why not just build the runtime?
     */
    public void createRestRuntimeEngineWithBuilder() throws MalformedURLException {
        // unfortunately, this breaks backward compatibility, but the improvement and clarity in the API is worth the risk
        RemoteRuntimeEngine runtimeEngine =
               RemoteRestRuntimeEngineFactory.newBuilder()
               .addUserName("user")
               .addPassword("pass")
               .addUrl(new URL("http://localhost:8080/business-central"))
               .build();
View Full Code Here


        RemoteRestRuntimeEngineBuilder runtimeEngineBuilder = RemoteRestRuntimeEngineFactory.newBuilder()
                .addDeploymentId(deploymentId)
                .addUrl(deploymentUrl)
                .useFormBasedAuth(useFormBasedAuth);

        RemoteRuntimeEngine krisRemoteEngine = runtimeEngineBuilder
                .addUserName(KRIS_USER)
                .addPassword(KRIS_PASSWORD)
                .build();
        RemoteRuntimeEngine maryRemoteEngine = runtimeEngineBuilder
                .addUserName(MARY_USER)
                .addPassword(MARY_PASSWORD)
                .build();
        RemoteRuntimeEngine johnRemoteEngine = runtimeEngineBuilder
                .addUserName(JOHN_USER)
                .addPassword(JOHN_PASSWORD)
                .build();
    }
View Full Code Here

TOP

Related Classes of org.kie.services.client.api.command.RemoteRuntimeEngine

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.