【发布时间】:2018-06-03 03:17:00
【问题描述】:
我正在尝试通过 Camunda spring boot starter 使用带有启动事件的嵌入式表单。
我的 startEvent 是这样描述的:
<bpmn:startEvent id="StartEvent_1" name="Rechnungseingang" camunda:formKey="embedded:app:forms/rechnungseingang.html">
<bpmn:outgoing>SequenceFlow_0dtfc1a</bpmn:outgoing>
</bpmn:startEvent>
表单本身位于“src/main/webapp/forms/rechnungseingang.html”下,据我了解,这应该是正确的路径。
如果我在启动 spring boot 应用程序后尝试启动进程,我会收到错误消息:“表单失败:上下文路径为空或未定义。”
在浏览器控制台中,我可以看到对http://localhost:8080/test/api/engine/engine/default/process-definition/Rechnungseingang:1:927f0aa4-e590-11e7-973d-e2cbd8678b9f/startForm 的请求以及响应:
{"key":"embedded:app:forms/rechnungseingang.html","contextPath":null}
显然应用程序无法处理 contextPath 中的空值。如何在 Spring Boot 中为 Camunda 设置 contextPath?在 application.properties 中我已经尝试设置 server.context-path 无效。
【问题讨论】:
标签: java spring-boot camunda