I am trying to retrieve the result objects created by a business process via the KIE remote API:
if (baseURL != null) {
System.out.println("[GlobalFlow]-Creating Engine");
engine = RemoteRuntimeEngineFactory.newRestBuilder().addUrl(baseURL).addUserName(user).addPassword(password)
.addDeploymentId(deploymentId).addTimeout(10)
.addExtraJaxbClasses(ClaimRequest.class, EvaluateLabClaimResponse.class, SecondaryCodes.class,
ResponseHeaderData.class, ResponseLineData.class, EvaluateLabClaim.class)
.build();
KieSession ksession = engine.getKieSession();
Map<String, Object> params = new HashMap<String, Object>();
[create and store a bunch of params...]
ProcessInstance processInstance =WorkflowProcessInstance ksession.startProcess("defaultPackage.GlobalFlow", params);
}
Now I want to get the return values that were created by the remote JBPM process. We have the objects sitting over there, all I need to do is get access to them.
How do I do that? I don't know how to get my data back to the method that made the REST call.
Thanks in advance.