I’m deploying a form using the piece of code attach below (as I read in the documentation).
FormEngine formEngine = FormEngines.getDefaultFormEngine(); FormRepositoryService formRepositoryService = formEngine.getFormRepositoryService(); formRepositoryService.createDeployment() .name("EnoughSubmissions") .addClasspathResource("EnoughSubmissions.form") .deploy();
The form is deployed (it appears in the Form Engine Deployments sections in flowable-admin application). However, something is not working as it should, due to the fact that the process doesn’t found the form (when claiming the task the form is blank). The ERROR that is shown is the following:
07:32:21,374 [http-nio-8080-exec-18] ERROR org.flowable.engine.common.impl.interceptor.CommandContext - masked exception in command context. for root cause, see below as it will be rethrown later. org.flowable.engine.common.api.FlowableObjectNotFoundException: Form model for task chekIfEnough cannot be found for form key enoughSubmissions
In addition, I cannot remove the deployed forms in flowable-admin application as I do with the deployed processes. The error shown in the application is: ALERT.FORM-DEPLOYMENT.DELETE-ERROR. So I have to remove it directly from the database
I revised the deployments and the key “enoughSubmissions” is the key of the form that exists and it’s deployed. Any idea of what is could be the problem?