I am using Camunda Platform 7.19.0. I am trying to set an Object variable from Task list or from the REST API. For example, when I try to create an ArrayList variable from like this
PUT /process-instance/aProcessInstanceId/variables/aVarName
{
"value" : "[1,2]",
"type" : "Object",
"valueInfo" : {
"objectTypeName": "java.util.ArrayList",
"serializationDataFormat": "application/xml"
}
}
I get this error in cockpit
I also tried to set it in Tasklist like this but I am not sure what to type here
I have already added camunda-engine-plugin-spin in Gradle dependencies. I have checked the documentation about serialization/deserialization, but I am still confused about how to set Object variables.
Any help would be appreciated.
Thanks.