Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHM Processes Service Task On Exit Action
final ObjectMapper om = new ObjectMapper();
ArrayList<Response> dd = new ArrayList<Response>();
List rr = (List)kcontext.getVariable("pResult");
Iterator<LinkedHashMap> i = rr.iterator();
while(i.hasNext()) {
LinkedHashMap m = (LinkedHashMap)i.next();
dd.add(om.convertValue(m,Response.class));
}
kcontext.setVariable("pDataList",dd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment