protected ProcessorReport parseProcessorReport(JsonNode reportJson, Path workflowReportJson, WorkflowReport workflowReport, WorkflowBundle workflowBundle) throws ParseException { Processor p = (Processor) getSubject(reportJson, workflowBundle); ProcessorReport procReport = new ProcessorReport(p); procReport.setParentReport(workflowReport); procReport.setJobsQueued(reportJson.path("jobsQueued").asInt()); procReport.setJobsStarted(reportJson.path("jobsStarted").asInt()); procReport.setJobsCompleted(reportJson.path("jobsCompleted").asInt()); procReport.setJobsCompletedWithErrors(reportJson.path( "jobsCompletedWithErrors").asInt()); // TODO: procReport properties parseDates(reportJson, procReport); for (JsonNode invocJson : reportJson.path("invocations")) parseInvocation(invocJson, workflowReportJson, procReport); for (JsonNode actJson : reportJson.path("activityReports")) { ActivityReport activityReport = parseActivityReport(actJson, workflowReportJson, procReport, workflowBundle); procReport.addActivityReport(activityReport); } return procReport; }
processorReport.setJobsQueued(1); processorReport.setJobsStarted(5); processorReport.setJobsCompleted(3); processorReport.setJobsCompletedWithErrors(2);