2

我正在尝试通过 KIE 远程 API 检索由业务流程创建的结果对象:

if (baseURL != null) {
  System.out.println("[GlobalFlow]-Creating Engine");
  engine =     RemoteRuntimeEngineFactory.newRestBuilder().addUrl(baseURL).addUserName(user).add    Password(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  = ksession.startProcess("defaultPackage.GlobalFlow", params);

}

现在我想获取远程 JBPM 进程创建的返回值。我们把物品放在那里,我需要做的就是访问它们。

我怎么做?

4

0 回答 0