Calling a multi-process instance with a collection of JSONs

I am attempting to make a multi-instance call with a collection of JSON values. I instantiate the collection in a delegate like this:
List batchRequestArray = new ArrayList();

And I can see the elements when I do a println but when it comes to actually calling a multi-instance activity I get an error:
“org.camunda.bpm.engine.ProcessEngineException: Cannot serialize object in variable ‘null’: org.camunda.spin.impl.json.jackson.JacksonJsonNode”

Right now, when I do my call activity, I use my aforementioned collection in the collection box, and the name of the variable I want to send in the element variable. I also have it mapped in the variables tab. Have I made a mistake somehow? I know that there are variables in the collection.

OK nevermind. I found a way of doing this, in the call you would use ${S(serviceRequest)} and it sends a json node out fine

1 Like