Hello! I have a weird problem trying to access the form model. I have these two simple lines where I am trying to get the form model from a process Id and a task…
But, when I try to use taskService.getTaskFormModel I get “Form engine is not initialized”, in the first line I can use taskService without problems… Any ideas?
Task task = taskService.createTaskQuery().processInstanceId(processId).taskDefinitionKey(“myT”).singleResult();
FormInfo formInfo =taskService.getTaskFormModel(task.getId());