question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use embedded forms on the app

See original GitHub issue

Hello,

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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jangalinskicommented, Jun 21, 2018

I would suggest to raise a support ticket

0reactions
mcscommented, Jun 21, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting the Embedded Signup Form - Mailchimp
The subscribe button is missing. · Click Audience, then click Signup forms. · Select Embedded forms. · Click Copy Code. · Near the...
Read more >
Bug in form embedded in iOS app - Jotform
I have an application in which I use two Jotform forms. One is in the "Projetos e orçamentos" button and the other is...
Read more >
Troubleshooting embedded typeforms - Help Center
First, check that the embed code you're using matches the code provided by Typeform. This is important for making sure that your embed...
Read more >
Embedded Form Not Found in Deployment - Camunda forum
I am trying to deploy an embedded form but it doesn't work. I am using the Tomcat 7.12 embedded engine. For a test...
Read more >
Can't Add Embedded Form to Wix Website - PSAI Help
Most commonly, this embedded form problem is caused by one of two errors in the Wix Tracking Tools panel: 1) copy/paste errors or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found