Created
December 11, 2015 12:30
-
-
Save agiertli/cc2b42e1fc12eea83e40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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