ReST API to fetch form variables

Hi ,
I have an embedded form for my user task.
I have a type enum field in the form
When I try to retrieve this form variable using ReST API ,I see that the type is String.
Any thoughts?

@Niall @aravindhrs

The response i get is

{
“severity”: {
“type”: “String”,
“value”: null,
“valueInfo”: {}
},
“empId”: {
“type”: “Long”,
“value”: null,
“valueInfo”: {}
},
“name”: {
“type”: “String”,
“value”: null,
“valueInfo”: {}
},
“active”: {
“type”: “Boolean”,
“value”: null,
“valueInfo”: {}
}
}

Here the variable severity should be enum

@Mass_Shake, Did you checked those variables in tasklist webapps? When you load the variables of that task from engine in tasklist it will deserialize the value and displays the value for that field.

As per the docs for Get Task Form Variables, fields returned from rest api should be in the following type. Assuming that enum fields are returned as String type.

Name Value Description
value String / Number / Boolean / Object The variable’s value. Value differs depending on the variable’s type and on the deserializeValues parameter.