protected WorkflowReport parseWorkflowReport(JsonNode reportJson,
Path workflowReportJson, ActivityReport actReport,
WorkflowBundle workflowBundle) throws ParseException {
Workflow wf = (Workflow) getSubject(reportJson, workflowBundle);
WorkflowReport workflowReport = new WorkflowReport(wf);
workflowReport.setParentReport(actReport);
parseDates(reportJson, workflowReport);
for (JsonNode invocJson : reportJson.path("invocations"))
parseInvocation(invocJson, workflowReportJson, workflowReport);
for (JsonNode procJson : reportJson.path("processorReports")) {
ProcessorReport procReport = parseProcessorReport(procJson,
workflowReportJson, workflowReport, workflowBundle);
workflowReport.addProcessorReport(procReport);
}
return workflowReport;
}