我希望使用嵌入式表单和Camunda Spring Boot启动器中的开始事件。
我的开始事件描述如下:
<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}
很明显应用程序无法处理上下文路径中的空值。我如何在Spring Boot中为Camunda设置上下文路径?在application.properties中,我已尝试设置
server.context-path
,但没有效果。