Hi thr,
I am new to Camunda and just trying things out.
I am using Tomcat embedded Camunda platform 7.15.
If thr is a List with default value in Modeler, I can see those values in Postman.
When I try to set the value of a List using JavaDelegate/DelegateExecution
List dummyList = new ArrayList();
dummyList.add(“IBM”);
dummyList.add(“Camunda”);
execution.setVariable(“bpmList”, dummyList);
Postman gives empty result for that variable
Is this the right approach?
I tried putting that list in a wrapper class which implemented IOSerializable and then followed below way. Even then it didnt work.
FirmListObject firmListObject = new FirmListObject();
firmListObject.setFirmList(dummyList);
ObjectValue firmListObjectValue = Variables.objectValue(firmListObject) .serializationDataFormat(Variables.SerializationDataFormats.JAVA).create();
execution.setVariable(“bpmList”, firmListObjectValue);
Could someone pls help?