Skip to content

Instantly share code, notes, and snippets.

@mauriziocarioli
Created January 1, 2020 21:20
Show Gist options
  • Save mauriziocarioli/34ddb1be9658d14fa81bddcf9b228a3a to your computer and use it in GitHub Desktop.
Save mauriziocarioli/34ddb1be9658d14fa81bddcf9b228a3a to your computer and use it in GitHub Desktop.
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