ENGINE-02025 Variable 'execution.getVariable("mCollection").prop("marketingList").elements()' is not of the expected type 'Collection'

ENGINE-02025 Variable ‘execution.getVariable(“mCollection”).prop(“arrLst”).elements()’ is not of the expected type ‘Collection’.

can anyone please help me to resolve this , in 7.20 camunda without using SPIN , how to use json data(arrLst) in Collection .
tried : ${execution.getVariable(“mCollection”).get(“arrLst”)} as well

Hello @Roshan ,

the expression from the header requires spin to function properly. Why would you refuse to use Spin?

Jonathan

SPIN function is giving an error and camunda engine is not getting started due to that.
can you please share any example .

@Roshan ,

this means the root cause is different. What stops your engine from starting?

Do you have a stacktrace?

Jonathan

1 Like

@jonathan.lukas
When I am using ${S(execution.getVariable(“mCollection”)).prop(“arrLst”).elements()},
Getting below exception:
groovy.lang.MissingMethodException: No signature of method: java.util.LinkedHashMap.prop() is applicable for argument types: (String) values.

This was working fine in 7.14 camunda version .

Hello @Roshan ,

what is the type of “mCollection”?

Jonathan

Its json string of map which has list param.

Hello @Roshan ,

I would like make my question more precise: What is the type of the process variable in cockpit?

Jonathan