Camunda Webapp embedd Thymeleaf as external form


#1

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


#2

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