无法通过processDefinitionId检索Form变量

时间:2017-03-10 08:44:44

标签: java workflow bpmn camunda

我正在使用camunda jar并开发实验案例来为流程构建自定义表单。我阅读了文档并了解到可以从表单服务getStartFormVariables方法中获取表单变量。考虑以下代码:

String processDefinitionId = "generatedFormsQuickstart:1:2503";
Gson gson = new Gson();
String result = gson.toJson(processEngine.getFormService().getStartFormVariables(processDefinitionId));
System.out.println(result);
result = gson.toJson(processEngine.getFormService().getRenderedStartForm(processDefinitionId));
System.out.println(result);

在结果中,第一个sysout打印{},而第二个打印出所有变量的整个表单"\u003cform name\u003d\"generatedFo...

我很困惑为什么没有检索变量但是检索了构建的表单。

0 个答案:

没有答案
相关问题