Hi folks,
I use the Spin plugin to serialize process variables to JSON. This works fine in cases, where I put a single entity into the variables, its Object Type Name will be the correct one.
However, when I put a Collection, let’s say a HashSet of my entity into the Variables, the Object Type Name will always be java.util.HashSet<java.lang.Object>
, regardless of the actual type.
When I put the Collection and retrieve it again in the same execution, it will be taken from the cache and deserialization works fine, but when it is not taken from the cache, it is deserialized into a HashSet, which contains a LinkedHashMap, which again contains the content in key-value-pairs.
Is there any way to properly de-/serialize Collections without loosing the knowledge of the actual type?
Cheers,
Stefan