Hi Thomas,
Thank you for your reply.
Do you mean that I should include these lines under the same file with below line?
detailsList.add(incident.getMessageHeader() == null ? "" : incident.getMessageHeader().getName());
Then my anwser is no, I didn't include the lines you mentioned in the same script with getmessageheader().
But I found similar codes in other file 'IncidentDetails.java':
#########################################################################
public boolean isRequested(Map<String, String> arguments) {
return (arguments.get("INCIDENT_ID") != null
&& (arguments.get("VIOLATIONS") == null || "false".equalsIgnoreCase(arguments.get("VIOLATIONS"))));
public void submit(ReportingServiceClient client, Map<String, String> arguments) {
IncidentDetailRequest request = new IncidentDetailRequest();
for (String key : arguments.keySet()) {
if (key.startsWith("INCIDENT_ID")) {
request.getIncidentLongId().add(Long.parseLong(arguments.get(key)));
}
}
request.setIncludeHistory(isTrue(arguments, "GET_HISTORY"));
request.setIncludeViolations(isTrue(arguments, "GET_VIOLATIONS"));
########################################################################
I understand the reason for your suggestion. The documentation says 'MessageHeader' and 'MessageBody' are provided only when you choose to include violation data in the incident detail request. Maybe it is the potiential problem. But the question is coming, I still can extract 'MessageBodyContent' successfully, and the documentation also says 'MessageBodyContent' is provided only when you choose to include violation data in the incident detail request.
Hence, maybe the problem is not in this part?
Thank you very much.