Ens.Alerting.NotificationManagerpersistent class Ens.Alerting.NotificationManager
Business Process that accepts incoming
- Whether a notification should actually be sent,
- which operation (or operations) any notification requests should be sent to, and
- which eventual recipients should be added to the notification list.
For each incoming NotificationRequest, a user callback sequence is initiated from the
OnProcessNotificationRequest() method is invoked. Users can override this method to perform any extended custom processing they choose, as well as indicate whether no further processing should be performed for the current request.
- The code checks whether
- If no transform is defined, the default processing in stage 3 controls the behaviour.
- Otherwise, the process will call the
GetNotifyContext() helper method to create a context object of type Ens.Alerting.Context.Notify. The helper method can be overridden to return user-defined subclasses of the context class. The incoming NotificationRequestobject will be supplied as the source of the transform, and the returned context object will be supplied as the target of the transform specified in NotificationTransform. As a result, the transform should specify create="existing" if you wish to make use of the object created by the GetNotifyContext() callback. The transform should specify any operations that the NotificationRequestshould be sent to using the
Transformslist of the context object that is in the target, as well as specifying the list of
AlertDestinationsfor each desired target. The transform should NOT update the
AlertDestinationsproperty of the original
NotificationRequest, as this property is ignored when processing the data. The transform should specify whether a notification should be sent via the
Notifyproperty of the context object.
- If no actions are taken in stages 1 or 2, the process's default behaviour is to send the notification request to the default Notification Operation specified for the current production.
Don't show the setting for
Name of the transform to invoke when determining which config items and eventual recipients the
NotificationRequestshould be sent to. The transform should be configured to accept a target of type Ens.Alerting.Context.Notify, which includes properties allowing the user to choose the config items and alert destinations as well as specifying whether a notification should be sent.
Callback to create the rule context used for the rule to decide whether a NotificationRequest should be sent to a Notification Operation, as well as which operations should be called, as well as the recipients for each operation. Users can override this method in subclasses to supply context objects based on the user's requirements.
Add connection to the Production's AlertNotificationOperation and targets of the NotificationTransform
Ensure that the transform specified in
Callback to allow users to implement any actions they choose in subclasses. The pProcessingComplete flag controls whether any further actions should be taken for the current alert. If all intended actions have been completed, then pProcessingComplete should be set to true.
Handle notification requests of type
Ens.Alerting.NotificationRequestusing the callback sequence described in this class comments for Ens.Alerting.NotificationManager.