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

Details

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

    Description

      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,

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:

                Salesforce