Red Hat Bugzilla – Bug 1006735
Generating default form when completing task fails with freemarker exception
Last modified: 2014-08-06 16:11:22 EDT
Description of problem:
Suppose there is a process with one or several human tasks (e.g. see the attached process). No forms were generated for those HTs so I would expect some default ones should be generated at runtime(?). However when the console is trying to display default form (when completing the task), the form is _not_ rendered and freemarker exception is thrown in the server log. See attached screenshot and server log.
Version-Release number of selected component (if applicable):
Note: Not sure if form modeler is the right component, so feel free to change the component to more appropriate one.
Steps to Reproduce:
0. The user which will try complete the tasks has to be in group "engineering" in order to see the task.
1. Start kie-wb (business-central). Create new repo and new project. Add the attached process into the project.
2. Build & deploy the project and start the process.
3. Go to tasks view, claim the task and then try to complete it.
Form is not rendered and exception is thrown (in the server log).
Form is correctly generated and task can be completed.
Created attachment 796288 [details]
Screenshot with non rendered form
Created attachment 796289 [details]
Server log with the freemarker exception
Created attachment 796290 [details]
BPMN2 process that can be used to reproduce the issue
The automatically generated form only supports String parameters and is only intended for demo purposes. So it's unclear how much time we should spend on fixing this, as it's definitely recommended to create proper forms for your tasks / processes.
It is expected that forms are generated. If this is not the case, then it is an issue that needs to be fixed in Beta..
Fixed on master: http://github.com/droolsjbpm/jbpm/commit/4d0af3fb9
And backported to 6.0.x
Verified fixed in ER4. The attached process (three tasks with default forms rendered) can be successfully completed without any exceptions in the log.