【发布时间】:2015-04-23 14:48:40
【问题描述】:
我正在使用 jBPM 6.2.0。我有一个包含用户任务的小工作流。 我正在尝试通过 Java 客户端使用远程 API 完成任务。
以下是使用的代码。
TaskService taskService = connManager.getTaskService("admin", "admin");
taskService.start(4, "admin");
taskService.complete(4, "admin", null);
以及相关的方法。
private RemoteRuntimeEngine getRuntimeEngine(String deployment, String user,
String password) throws MalformedURLException {
URL deploymentUrl = new URL("http://localhost:8080/jbpm-console/");
return (RemoteRuntimeEngine) RemoteRuntimeEngineFactory
.newRestBuilder().addUrl(deploymentUrl).addUserName(user)
.addPassword(password).addDeploymentId("").build();
}
public TaskService getTaskService(String user, String password)
throws MalformedURLException {
// Establish Connection
RemoteRuntimeEngine conn = getRuntimeEngine("", user, password);
TaskService taskServcie = conn.getTaskService();
return taskServcie;
}
我完成任务后,工作流程没有向前推进。就我而言,以后没有活动,所以我期待工作流程结束。
【问题讨论】: