Bug 1006735

Summary: Generating default form when completing task fails with freemarker exception
Product: [Retired] JBoss BPMS Platform 6 Reporter: Petr Široký <psiroky>
Component: Form ModelerAssignee: Mauricio Salatino <msalatin>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Široký <psiroky>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: kverlaen, paradhya, rrajasek
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:11:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot with non rendered form
none
Server log with the freemarker exception
none
BPMN2 process that can be used to reproduce the issue none

Description Petr Široký 2013-09-11 08:19:09 UTC
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):
6.0.0-ER2


Note: Not sure if form modeler is the right component, so feel free to change the component to more appropriate one.


How reproducible:
Always

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.


Actual results:
Form is not rendered and exception is thrown (in the server log).


Expected results:
Form is correctly generated and task can be completed.

Comment 2 Petr Široký 2013-09-11 08:23:34 UTC
Created attachment 796288 [details]
Screenshot with non rendered form

Comment 3 Petr Široký 2013-09-11 08:24:59 UTC
Created attachment 796289 [details]
Server log with the freemarker exception

Comment 4 Petr Široký 2013-09-11 08:26:05 UTC
Created attachment 796290 [details]
BPMN2 process that can be used to reproduce the issue

Comment 5 Kris Verlaenen 2013-09-16 17:49:45 UTC
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.

Comment 6 Prakash Aradhya 2013-09-16 22:12:02 UTC
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..

Comment 7 Mauricio Salatino 2013-09-19 19:44:11 UTC
Fixed on master: http://github.com/droolsjbpm/jbpm/commit/4d0af3fb9 
And backported to 6.0.x

Comment 11 Petr Široký 2013-10-17 16:03:44 UTC
Verified fixed in ER4. The attached process (three tasks with default forms rendered) can be successfully completed without any exceptions in the log.