Creating a Dynamic Alert Template
Dynamic alert templates use the Velocity open-source templating framework. Using dynamic variable resolution, Velocity allows flexible generation of text and creation of templates using any context-related data elements instead of a fixed set of previously available variables. That is, instead of requiring that the variable ${rule.name} be explicitly defined, Velocity attempts to resolve the attribute “name” from the rule element within the context. If this variable cannot be resolved, the variable will appear verbatim in the generated e-mail, indicating that the substitution failed.