0
我试着去用户下面的代码来完成的jBPM任务:使用参数Jbpm的完成任务 - 地图是空
private static RemoteRestRuntimeEngineFactory restSessionFactory = null;
private static RuntimeEngine engine = null;
private static KieSession ksession = null;
private static TaskService task = null;
public static void main(String[] args) {
try {
restSessionFactory = RemoteRestRuntimeEngineFactory.newRestBuilder()
.addUrl(new URL("http://localhost:8080/jbpm-console"))
.addDeploymentId("jbpm:formularios:1.2")
.addUserName("admin")
.addPassword("admin").buildFactory();
} catch (InsufficientInfoToBuildException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
e.printStackTrace();
}
engine = restSessionFactory.newRuntimeEngine();
ksession = engine.getKieSession();
task = engine.getTaskService();
Map<String,Object> map = new HashMap<String,Object>();
map.put("name", "mary");
map.put("age", "23");
task.complete(271, "admin", map);
}
林只有这种依赖性:
<dependency>
<groupId>org.kie.remote</groupId>
<artifactId>kie-remote-client</artifactId>
<version>6.2.0.Beta3</version>
</dependency>
的TAKS不完整问题,但参数是空的;
然后我试图使用“邮差”(浏览器插件)做下面的帖子:
localhost:8080/jbpm-console/rest/task/249/complete?map_name=mary&map_idade=23
和任务完全没有问题,但与参数。
如果我开始一个新的进程:
localhost:8080/jbpm-console/rest/runtime/jbpm:formularios:1.0/process/formularios.isluis/start?map_nome=mary&map_idade=23
过程开始用正确的参数。
进出口使用Jbpm的控制台6.1
我这么想???