1. Create a “Custom Object” to send an email. Parameters to custom object will be the from and to addresses and any additional arguments needed to create a meaningful message body.
2. Create an “Expression Rule” to detect the escalation and uses the custom object to send the email. Add the email address to the argument list.
The source code for the custom object is Groovy or plain Java. Add parameters in the order they are sent.