尝试从KIE Remote REST API检索JBPM流程结果

时间:2016-03-30 13:20:38

标签: rest jbpm kie remoteapi

我正在尝试通过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进程创建的返回值。我们有对象坐在那里,我需要做的就是访问它们。

我该怎么做?

0 个答案:

没有答案