Interface BpmMessageTemplateRenderer

All Known Implementing Classes:
BpmMessageTemplateRendererImpl

public interface BpmMessageTemplateRenderer
Renders a notification body from a message template through the Message Templates add-on. Present only when the add-on is on the classpath.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    getContentType(String templateCode)
    Resolves the content type declared by the template with the given code.
    render(String templateCode, Map<String,Object> parameters)
    Renders the template with the given code, substituting the passed parameters.
  • Method Details

    • render

      String render(String templateCode, Map<String,Object> parameters)
      Renders the template with the given code, substituting the passed parameters.
      Parameters:
      templateCode - message template code
      parameters - parameters available to the template
      Returns:
      rendered message text
    • getContentType

      @Nullable String getContentType(String templateCode)
      Resolves the content type declared by the template with the given code.
      Parameters:
      templateCode - message template code
      Returns:
      "html" or "plain" per the template's type, or null if the template is not found