This content has been marked as final.
Show 2 replies
-
1. Re: RemoteConfiguration which is used along with RemoteRestRuntimeEngineFactory doesnt set serverBaseUrl
sanjay05222 Aug 31, 2015 8:53 PM (in response to sanjay05222)1 of 1 people found this helpfulTill the issue get fixed the solution is to set
config.setServerBaseRestUrl(new URL(kieInstanceURLString));
to make sure the base url get set .
thanks
Sanjay Gautam
-
2. Re: RemoteConfiguration which is used along with RemoteRestRuntimeEngineFactory doesnt set serverBaseUrl
sanjay05222 Sep 1, 2015 2:09 PM (in response to sanjay05222)Probably the other way to use would be as below instead of me trying to directly instantiate the Remote Configuration .
RuntimeEngine engine = RemoteRuntimeEngineFactory.newRestBuilder()
.addDeploymentId("org.jbpm:HR:1.0")
.addUrl(deploymentUrl)
.addUserName("user")
.addPassword("password")
.addTimeout(5000)
.build();
Map<String, Object> parameters = new HashMap<String, Object>();
String inputData = "john";
parameters.put("name", inputData);
ProcessInstance processInstance = engine.getKieSession().startProcess("hiring", parameters);ThanksSanjay Gautam