To configure a document template, first, you need to select some information stored in the Body:
Type - could be either MAIL or SMS notifications
Forward on Kafka - if this checkbox is ticked, the notification is not being sent directly by the plugin to the destination, but forwarded to another adapter (this is mandatory for SMS notifications templates, as they require an external adapter)
Language - choose the language for your notification template
Subject - enter a subject
You can edit the content for each language you have defined in the project.
Using the Data model tab, you can define key pair values (parameters) that will be displayed and reused in the editor. Multiple parameters can be added:
STRING
NUMBER
BOOLEAN
OBJECT
OBJECT_REF
ARRAY
ARRAY_REF
ENUM
After you defined some parameters in the Data Model tab, you can type β#β in the editor to trigger a dropdown where you can choose which one you want to use/reuse.
When opening the contextual menu (accessible by clicking on the breadcrumbs button), you have multiple actions to work with the notifications templates:
Configure - edit the template
Export template - export a template (JSON format)
Audit log - view the audit log
Copy to another project/library - copy a template to another project/library