private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) { List<ExecutionEvent> events = reportNode.getElementProcessingEvents(); for (ExecutionEvent event : events) { if (event instanceof ElementVisitEvent) { ElementVisitEvent visitEvent = (ElementVisitEvent) event; if (visitEvent.getSequence() == visitSequence) { ReportInfoNode reportInfoNode = new ReportInfoNode(); ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping(); messageNode.addExecInfoNode(reportInfoNode); reportInfoNode.setNodeId(reportInfoNodeCounter); reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary()); reportInfoNode.setDetail(visitEvent.getReportDetail()); reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML()); reportInfoNode.setContextState(visitEvent.getExecutionContextState()); reportInfoNodeCounter++; } } } }
private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) { List<ExecutionEvent> events = reportNode.getElementProcessingEvents(); for (ExecutionEvent event : events) { if (event instanceof ElementVisitEvent) { ElementVisitEvent visitEvent = (ElementVisitEvent) event; if (visitEvent.getSequence() == visitSequence) { ReportInfoNode reportInfoNode = new ReportInfoNode(); ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping(); messageNode.addExecInfoNode(reportInfoNode); reportInfoNode.setNodeId(reportInfoNodeCounter); reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary()); reportInfoNode.setDetail(visitEvent.getReportDetail()); reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML()); reportInfoNode.setContextState(visitEvent.getExecutionContextState()); reportInfoNodeCounter++; } } } }
private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) { List<ExecutionEvent> events = reportNode.getElementProcessingEvents(); for (ExecutionEvent event : events) { if (event instanceof ElementVisitEvent) { ElementVisitEvent visitEvent = (ElementVisitEvent) event; if (visitEvent.getSequence() == visitSequence) { ReportInfoNode reportInfoNode = new ReportInfoNode(); ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping(); messageNode.addExecInfoNode(reportInfoNode); reportInfoNode.setNodeId(reportInfoNodeCounter); reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary()); reportInfoNode.setDetail(visitEvent.getReportDetail()); reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML()); reportInfoNode.setContextState(visitEvent.getExecutionContextState()); reportInfoNodeCounter++; } } } }
private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) { List<ExecutionEvent> events = reportNode.getElementProcessingEvents(); for (ExecutionEvent event : events) { if (event instanceof ElementVisitEvent) { ElementVisitEvent visitEvent = (ElementVisitEvent) event; if (visitEvent.getSequence() == visitSequence) { ReportInfoNode reportInfoNode = new ReportInfoNode(); ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping(); messageNode.addExecInfoNode(reportInfoNode); reportInfoNode.setNodeId(reportInfoNodeCounter); reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary()); reportInfoNode.setDetail(visitEvent.getReportDetail()); reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML()); reportInfoNode.setContextState(visitEvent.getExecutionContextState()); reportInfoNodeCounter++; } } } }