/** Search in message parts properties then in extra properties and then * in sub reports. Returns first occurrence of the key. */ public String findProperty(String key) { MessagePart topMessagePart = getTopMessagePart(); if (topMessagePart != null) { String value = topMessagePart.findProperty(key); if (value != null) { return value; } } if (extraProperties != null) { String value = extraProperties.getProperty(key); if (value != null) { return value; } } if (getSubActionsReport() != null) { for (ActionReport subReport : getSubActionsReport()) { String value = subReport.findProperty(key); if (value != null) { return value; } } } return null; } }
/** Search in message parts properties then in extra properties and then * in sub reports. Returns first occurrence of the key. */ public String findProperty(String key) { MessagePart topMessagePart = getTopMessagePart(); if (topMessagePart != null) { String value = topMessagePart.findProperty(key); if (value != null) { return value; } } if (extraProperties != null) { String value = extraProperties.getProperty(key); if (value != null) { return value; } } if (getSubActionsReport() != null) { for (ActionReport subReport : getSubActionsReport()) { String value = subReport.findProperty(key); if (value != null) { return value; } } } return null; } }
postInvoke(context, subReport); else { if (subReport.getSubActionsReport() != null && subReport.getSubActionsReport().size() > 0 && subReport.getSubActionsReport().get(0).getExtraProperties() != null) { postInvoke(context, subReport.getSubActionsReport().get(0)); } else { actionReport.setMessage(subReport.getMessage());
private void copyActionReportContent(ActionReport source, ActionReport dest) { if (source == null || dest == null) { return; } dest.setActionExitCode(source.getActionExitCode()); dest.setExtraProperties(source.getExtraProperties()); //No deep copy. Any change of source is unexpected copyMessagePart(source.getTopMessagePart(), dest.getTopMessagePart()); List<? extends ActionReport> subReports = source.getSubActionsReport(); if (subReports != null) { for (ActionReport subrep : subReports) { copyActionReportContent(subrep, dest.addSubActionsReport()); } } }
for (ActionReport subReport : report.getSubActionsReport()) { ActionReport.ExitCode actionExitCode = subReport.getActionExitCode();
for (ActionReport subReport : report.getSubActionsReport()) { ActionReport.ExitCode actionExitCode = subReport.getActionExitCode();