Package io.jmix.bpm.notification
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 TypeMethodDescription@Nullable StringgetContentType(String templateCode) Resolves the content type declared by the template with the given code.Renders the template with the given code, substituting the passed parameters.
-
Method Details
-
render
Renders the template with the given code, substituting the passed parameters.- Parameters:
templateCode- message template codeparameters- parameters available to the template- Returns:
- rendered message text
-
getContentType
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, ornullif the template is not found
-