Hi,
does anybody know if it’s possible to start a process with variables of type object like a collection. Object doesn’t work.
{
"variables": {
"customer":{"value":"Dummy","type":"String"},
"myDate":{"value":"2016-01-25T13:33:42", "type":"Date"},
"products":{"value":"AProduct","type":"Object"} // is it possible if yes how? for example a string collection
}
}
1 Like
Hi @Bayqush,
I would recommend you to read through the process engine variable section in the documentation. There you can find all the information you need. For a collection you can either use java objects (like a map or a list) and serialize them or use JSON/XML. With the latter option I would also recommend to use the SPIN plugin (see here) as it helps a lot to parse such data structures.
Hope that helps
Best,
Johannes
1 Like