Cannot use embedded forms on the app
See original GitHub issueHello,
I’ve been working on an application using the webapp starter, and have been trying to get an embedded form to work. My project structure is very similar to the one found in examples/camunda-spring-boot-starter-example-webapp
. I tried creating a folder src/main/webapp/forms
with a file greetingForm.html
, and modifying sample.bpmn
so that the user task “do something” has form key app:embedded:forms/greetingForm.html
, but I get a CORS error displayed when trying to view the form in the Tasklist.
We experienced a similar problem with a non-spring-boot Camunda project, and the issue went away when we used an META-INF/process.xml
without any configuration, like:
<?xml version="1.0" encoding="UTF-8" ?>
<process-application
xmlns="http://www.camunda.org/schema/1.0/ProcessApplication"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<process-archive>
<process-engine>default</process-engine>
<properties>
</properties>
</process-archive>
</process-application>
but the same approach doesn’t seem to work here. The problem seems to involve the contextPath
being null
in the response below, which is obtained by tasklist app when using the API endpoint /api/engine/engine/default/task/1408
{"key":"embedded:app:forms/greetingForm.html","contextPath":null}
Can embedded forms work with the spring boot webapp starter? Is this a bug, pending feature, or something I’m missing? Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
I would suggest to raise a support ticket
Well, the same problem occurs for me when using Spring Boot 2.0.2, but setting server.servlet.contextPath doesn’t fix it for me. I don’t even get an error in my server log, just an invalid HTTP request to
http://localhost:8080/forms/ergebnis-lesen.html?noCache=1529563649812&taskId=f5ddea46-751e-11e8-870f-aced5cb84e54&userId=demo
I am using the camunda-bpm-spring-boot-starter-webapp-ee with version 3.0.0.