you have to be aware of the fact, that a Multi Instance tasks expects an object of a “Java Collections”-Type as input. Other objects can not be passed to this task. An element of the Java Collections is something like a LinkedList or an ArrayList. So make sure you choose the right data type when using and calling this task.
This is the reason why it is saying “${uatsitecolls} didn’t resolve to type Collection”, because it is not something of a Java Collection, it is a JSON String.
myJsonVar.elements() would return the collection rather than the SPIN object.
see the following for more detailed explanation:
@MichiDahm When it was stored as type json, its a java object its just not a “collection”, so they have to use the .elements() methods on the JSON SPIN object as per above.
Thank you guys for the info.
Indeed, now I get the Java Collection from the Json object by calling elements() method and the CallActivity artefact can iterate over it.