Skip to content

Instantly share code, notes, and snippets.

@mauriziocarioli
Created January 1, 2020 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauriziocarioli/66f06d0a5a986e0aa930b230b85afdf5 to your computer and use it in GitHub Desktop.
Save mauriziocarioli/66f06d0a5a986e0aa930b230b85afdf5 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