Provides reporting functionality for an Advanced Message notification.
Creation Method: Available on the Advanced Message Report script object by calling the getNotificationDetails method.
Reference Name: User defined.
Scope: Script lifecycle.
The following example illustrates how to create a Notification Details Report object and use the above methods to output its content into a notification message and the log files:
@advancedMessage = @event::advancedMessage()
IF (!EXISTS(@advancedMessage))
@script::log("Unable to resolve advancedMessage object.")
$content.message = ""
exit
ENDIF
@advancedMessageReport = @advancedMessage::getSummary()
IF (!EXISTS(@advancedMessageReport))
@script::log("Unable to resolve advancedMessage Report object.")
$content.message = ""
exit
ENDIF
$failureIds = @advancedMessageReport::getPendingNotificationIds()
IF(empty($failureIds))
@script::log("No pending \n")
ELSE
FOR($failureId: $failureIds)
@notificationDetailsReport = @advancedMessageReport::getNotificationDetails($failureId)
$Status = @notificationDetailsReport::getStatus()
$PersonName = @notificationDetailsReport::getPersonName()
$Id = @notificationDetailsReport::getId()
$Response = @notificationDetailsReport::getResponse()
$CompletedTime = @notificationDetailsReport::getCompletedTime()
$content.message::add($PersonName &"/"& $Id &"/" & $Status & "/" & $Response & "/" & $CompletedTime & "\n")
@script::log("Log Info : " & $PersonName &"/"& $Id &"/" & $Status & "/" & $Response & "/" & $CompletedTime & "\n")
ENDFOR
ENDIF