I am getting the following exception while trying simple code from docs.
Cannot find serializer for value ‘ObjectValue [value={001=Notebook, 002=Server, 003=Workstation}, isDeserialized=true, serializationDataFormat=application/json, objectTypeName=null, serializedValue=null, isTransient=false]’
here is the code snippet:
Map<String, String> productTypes = new HashMap<String, String>();
productTypes.put(“001”, “Notebook”);
productTypes.put(“002”, “Server”);
productTypes.put(“003”, “Workstation”);
execution.setVariable("AVAILABLE_PRODUCT_TYPES",
objectValue(productTypes)
.serializationDataFormat(Variables.SerializationDataFormats.JSON)
.create());
pom.xml (2.9 KB)
Attached pom as well
I am new to This,please someone can help