Skip to content

Commit

Permalink
Added "run result status" to mail notifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Jun 21, 2016
1 parent 52534ab commit 6e5a74f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -85,6 +85,9 @@ protected String getBody(Event event, GeneralNotifierType generalNotifierType, S
body.append("Notification about task-related operation.\n\n");
body.append("Task: ").append(taskName).append("\n");
body.append("Handler: ").append(task.getHandlerUri()).append("\n\n");
if (taskEvent.getTaskRunResult() != null) {
body.append("Run result status: ").append(taskEvent.getTaskRunResult().getRunResultStatus()).append("\n");
}
body.append("Status: ").append(taskEvent.getOperationResultStatus()).append("\n");
String message = taskEvent.getMessage();
if (StringUtils.isNotBlank(message)) {
Expand Down

0 comments on commit 6e5a74f

Please sign in to comment.