Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-5152

[GSS](6.4.z) Unable to view user task form in business-central if a task variable set as java.util.Date type is set and using default task form in BPM Suite 6.4.x

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 6.4.9
    • BPM Suite 6.4.x
      Default TaskForm (InMemoryFormProvider - FreemakerFormProvider.render)

    • Hide

      1. clone git repository to business-central;
      2. start mysample process, fill out a date in the form and then navigate to Task page;
      3. click on the user task listed... the error is thrown.

      Show
      1. clone git repository to business-central; 2. start mysample process, fill out a date in the form and then navigate to Task page; 3. click on the user task listed... the error is thrown.

    Description

      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;

      Attachments

        Activity

          People

            kverlaen@redhat.com Kris Verlaenen
            rhn-support-ajuricic Amana Juricic
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: