-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
6.4.9
-
BPM Suite 6.4.x
Default TaskForm (InMemoryFormProvider - FreemakerFormProvider.render)
Unable to view user task form in business-central if a task variable set as *java.util.Date *type is set and a custom task form is not generated.
The following error happens when trying to view task form in server.log:
14:55:28,873 ERROR [freemarker.runtime] (http-127.0.0.1:8080-4) Template processing error: "Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.\u003Cformat> or ?string(format) built-in with this date.": freemarker.template.TemplateModelException: Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.<format> or ?string(format) built-in with this date. at freemarker.core.Environment.formatDate(Environment.java:776) [freemarker-2.3.19.jar:2.3.19] ... at freemarker.template.Template.process(Template.java:259) [freemarker-2.3.19.jar:2.3.19] at org.jbpm.kie.services.impl.form.provider.FreemakerFormProvider.render(FreemakerFormProvider.java:45) [jbpm-kie-services-6.5.0.Final-redhat-16.jar:6.5.0.Final-redhat-16] ...
If a custom task form is generated to User Task with date field set as Short Date or Timestamp it works well.
- issue happens only if generate process definition form, and default form for User Task (not generate form for HT);
- once a form is generated to HT, it works well;