Skip to main content

Using a Simple Outbound Adapter Alert Processor

Using a Simple Outbound Adapter Alert Processor

If you can handle all the alerts via the same output mechanism, but you cannot use EnsLib.EMail.AlertOperationOpens in a new tab, then create a business operation named Ens.Alert as follows:

  • Specify the ADAPTER parameter as the name of a suitable adapter class.

  • Implement the OnMessage() method. The signature of this method should be as follows:

    Method OnMessage(pRequest As Ens.AlertRequest, Output pResponse As Ens.Response) As %Status {}

    In your implementation, call methods of the adapter as needed.

    See Defining Business Operations and see the adapter documentation.

You might want to define the class so that details such as email addresses and telephone numbers are configurable. See Adding and Removing Settings.

FeedbackOpens in a new tab