Camunda Webapp embedd Thymeleaf as external form

Hi Experts,

I am looking for a sample or tutorial where Camunda webapp embedd external form built with Thymeleaf template engine (i am working with Spring Boot project).

So far, i have seen tutorial for JSF https://docs.camunda.org/manual/7.6/examples/tutorials/jsf-task-forms/

However, if it has to be JSF, is it possible to leverage JSF framework like PrimeFaces?

Best regards,
Hendry

Figured out the way to embed Thymeleaf htmls as external forms through Camunda Modeller.

  1. Thymeleaf views as usual (/resource/templates/new-form.html )
  2. Spring controller to render thymeleaf view
@GetMapping("/newform")
    public String index(Model model) {
		model.addAttribute("variable", "this is value");
        return "new-form";
    }
  1. Set formkey in Camunda Modeler with route name (e.g. /newform )
  2. Click deploy on Camunda Modeler toolbar when Springboot with Camunda webapp running. (Config URL to http://localhost:8080/rest , Auth to None )

Thanks

1 Like

Hi @ndry93,

I am trying to achieve the same.
Could you please let me know whether you integrated form in your web application or in tasklist app?

Regards,
Shweta P

Hi @ndry93,

Were you able to complete the thymeleaf external form? If so will you please share the form submit code(html side) . I am able to route to thymeleaf user form but while completing the task the ajax call is happening internally to the service and task is also moving forward but the user task form is not going any where

Thanks,
Rahul