Skip to content

Instantly share code, notes, and snippets.

@agiertli
Created December 11, 2015 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agiertli/cc2b42e1fc12eea83e40 to your computer and use it in GitHub Desktop.
Save agiertli/cc2b42e1fc12eea83e40 to your computer and use it in GitHub Desktop.
RuntimeEngine engine = null;
try {
engine = RemoteRuntimeEngineFactory
.newRestBuilder()
.addDeploymentId("org.redhat.gss:StartedByCommandProject:1.0")
.addUrl(new URL("http://localhost:8080/business-central"))
.addUserName("anton")
.addPassword("password1!")
.addTimeout(0)
.build();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (engine!=null) {
engine.getKieSession().startProcess("StartedByCommandProject.StartedByCommandProcess");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment