Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8357

Rest API - Task - Form variables - Type as string instead of Date until executed

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • None
    • 7.7.0
    • engine
    • None

      Hello,

      I am getting the task form variables using: task/${id}/form-variables

      Apart from the fact that it is fetching all values instead of on my task form as reported here (https://app.camunda.com/jira/browse/CAM-82474), I have a form variable defined in my User task as a Date. But it will always return it as String until I execute the task.

      Example, it returns:
      "myDate":{"type":"String","value":null,"valueInfo":{}}

      My expected would be:
      "myDate":{"type":"Date","value":null,"valueInfo":{}}

      When I complete the tasks and it saves the information, if I get the form-variables of the next task, it will come as:
      {"myDate":{"type":"Date","value":"2017-10-19T00:00:00","valueInfo":{}}}

      I am working on custom UI based on the Rest API and I did not want to rely on the XML call from my front-end.
      Should it be that we have the right type for Date before the value is saved?

      Best Regards,

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              mathieu Mathieu Rousseau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: