Created attachment 867467 [details] exception Description of problem: If you use FTL forms for human task the save button does not work. Version-Release number of selected component (if applicable): BPM 6.0 How reproducible: Steps to Reproduce: 1. Create process with human task and some output 2. Generate all forms 3. To be sure that the *.ftl forms will be displayed I have deleted all *.form files (maybe there is a better way, I wasn't sure) 4. Start the process, claim the task 5. FTL form is with input field is displayed. Type something into this field and hit SAVE button. Refresh the page and you can see that the input is empty. Meanwhile, in the log, following exception can be observed: Could not commit session: org.jbpm.services.task.exception.PermissionDeniedException: User '[UserImpl:'rtubati']' was unable to execution operation 'Start' on task id 4 due to a no 'current status' match Full stack trace is attached. Actual results: SAVE button does not work with with FTL forms - value is not saved and WARN message is displayed in the log Expected results: SAVE button works with FTL forms - value should be stored and no warn should be present in the log Additional info:
Another (easier) way to reproduce: 1) create a new task in the task list (use your login for the task owner) 2) start the task 3) hit save
Hi Marek, Anton, Can you guys elaborate a little bit more about how the start task and save issues are related? The stack trace attached is due the fact that the task cannot be started for that user, and what is the error when you hit save? Or there is no errors just the fields are empty?
Created attachment 873981 [details] How to reproduce video.
Mauricio, to be honest I have no idea why the 'save' but is there or what it's good for. I only know that if you click on it, you will get an exception. Please take a look at https://bugzilla.redhat.com/attachment.cgi?id=873981. That should put things into perspective.
Created attachment 874020 [details] ..another reproducer
Hi Mauricio, I have made a little video which shows how I am reproducing the issue. Permission denied exception is displayed when you click SAVE - the task actor is "guvnor" and logged user is "guvnor", so I find this exception actually unexpected :). That WARN message is displayed when you click on DETAILS (Work Details Assignments Comments). I don't know how these two errors are related, maybe there are two separate bugs, can't tell at the moment. I simply receive both of these errors when I am reproducing the original SAVE button issue. Cheers, Anton
Mauricio, maybe both of these errors are completely not related to the original issue. However, the point is the value in the input field is not persisted upon clicking SAVE button. Anton.
Fixed in 6.0.x: http://github.com/droolsjbpm/jbpm-console-ng/commit/e665c695f http://github.com/droolsjbpm/jbpm-designer/commit/c1f22c07d
Fix in jbpm form provider (6.0.x): http://github.com/droolsjbpm/jbpm/commit/fd7b57572
Verified on BPMS 6.0.2 ER1