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
with a json body like
4. The response should already show, that variable "passedDate" is unexpectedly from type String:
5.Inspect the "passedDate" variable value and type in activiti-admin via the Instances tab
The variable was set with correct value, but with incorrect data type String (see attached incorrectDateDataType.png)
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.
Reprodcued with latest Activiti 188.8.131.52 release