I’m using postman to start a process instance but have been unable to send a variable that is a List.
My payoad is
{"variables":
{
"pid":{"value":1, "type":"Long"},
"users":{"value":["big","abg"], "type":"object"}
},
"businessKey" : "9u45"
}
Error:
Cannot instantiate process definition
Must provide ‘null’ or String value for value of SerializableValue type ‘Object’.
I tried a different approach:-
List users = Arrays.asList(new String[] {“u1”,“u2”});
ObjectValue typedObjectValue = Variables.objectValue(users).create();
So now my TypedValue is:-
ObjectValue [value=[u1, u2], isDeserialized=true, serializationDataFormat=null, objectTypeName=null, serializedValue=null]
Then i put this into the payload
{"variables":
{
"users":{"value":"ObjectValue [value=[u1, u2], isDeserialized=true, serializationDataFormat=application/x-java-serialized-object, objectTypeName=null, serializedValue=null", "type":"object"}
},
"businessKey" : "9u46"
}
Now, when i try starting my process, i get the following error
Cannot find serializer for value ‘ObjectValue [value=null, isDeserialized=false, serializationDataFormat=null, objectTypeName=null, serializedValue=153 chars]’."
I need some help to understand how to send a variable that’s a List.
I’ve read the documentation especially the section on process variables and serialization, but wasn’t able to put the pieces together (rubix cube syndrome).
Thanks for your help!