Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-18226

Date variable is incorrectly set to a String variable using REST API


    • Bug Priority:
      Category 2
    • ACT Numbers:

      00821490, 01004649

    • Sprint:
      Docs Sprint 18


      When setting a date variable during process launch using the REST API, the variable data type is incorrectly set to String.

      Steps to reproduce
      1. Via Kickstart in activiti-app import and publish the attached app DateVariable.zip
      NOTE: The app comes with a simple process with start event->user task->end event and defines a global process variable from type Date named "passedDate".
      2. Via activiti-admin and the Definitions tab get the process definition Id of the process, which should look similar to "DateVariable:1:322669"
      3. Start a process and set the passedDate value using any REST client (e.g. Postman) and the call

      POST http://localhost:9999/activiti-app/api/enterprise/process-instances

      with a json body like

      "processDefinitionId": "DateVariable:1:322669",
      "variables": [
      "name": "passedDate",
      "value": "2017-03-07T00:00:00Z",
      "type": "date"

      4. The response should already show, that variable "passedDate" is unexpectedly from type String:

      "variables": [
            "name": "passedDate",
            "type": "string",
            "value": "2017-03-07T00:00:00Z"
            "name": "initiator",
            "type": "string",
            "value": "1"

      5.Inspect the "passedDate" variable value and type in activiti-admin via the Instances tab

      Current behaviour
      The variable was set with correct value, but with incorrect data type String (see attached incorrectDateDataType.png)

      Expected behaviour
      As in the json body the correct ISO-8601 format was used for the date value and also the variable type date was specified, the variable should have been set from type date.

      Supporting evidence
      Reprodcued with latest Activiti release


          Issue Links




                • Assignee:
                  custeng Customer Engineering
                  dkoch Dennis Koch
                • Votes:
                  0 Vote for this issue
                  4 Start watching this issue


                  • Created:

                    Structure Helper Panel