@Override public void executeWorkItem(WorkItem wi, WorkItemManager wim) { for (String k : wi.getParameters().keySet()) { System.out.println("Key = " + k + " - value = " + wi.getParameter(k)); } wim.completeWorkItem(wi.getId(), null); }
@Override public void executeWorkItem(WorkItem wi, WorkItemManager wim) { for (String k : wi.getParameters().keySet()) { System.out.println("Key = " + k + " - value = " + wi.getParameter(k)); } Map<String, Object> params = new HashMap<String, Object>(); params.put("out_test_successful", "true"); params.put("out_test_report", "All Test were SUCCESSFULY executed!"); wim.completeWorkItem(wi.getId(), params); }