Developing a custom escalation handler for alerts
The default Escalation Handler, AlertAgeEscalationHandler.java, implements
an escalation rule based on alert age.
Follow these steps to use the Java interface EscalationHandler.java to
develop a custom escalation handler.
1. Write
a class to implement EscalationHandler.java(for example, NewRuleEscalationHandler.java).
Three abstract methods should be implemented.
2. If
the custom escalation handler needs special configuration data from end
users, additional pages need to be developed. To change to the new escalation
rules, there are some changes that need to be made to the ManageAlertsSupport.model.
3. To
display the new escalation rule, define a new resource key in ManageAlertsSupport.properties
(for example, escalationHandler_NewRule = Escalate Based Upon New Rule).
To support localization, this resource key should be defined in other language
property files.
4. Add
a new entry in the escalationHandlers.xml file located in the WEB-INF/solutions/alerting/config
directory. After adding the entry, the code should be similar to the the
code fragment below.
com.bowstreet.solutions.alerting.impl.escalation.AlertAgeEscalationHandler
com.bowstreet.solutions.alerting.impl.escalation.NewRuleEscalationHandler