Custom Notification Templates
Overview
Custom notification templates can be used instead of the default WorkflowGen notification templates. These templates can be created in HTML or as plain text and can also use many regular WorkflowGen macros to display process-specific information.
Process
Process data
For WorkflowGen to use the custom notifications, they must be added to the process data as FILE type.
To do this, first create new process data for each template to be used, then browse to and attach the custom template to be used.
Action notifications
WorkflowGen can use an unlimited number of custom notifications per action. To add a custom notification, follow the steps below.
On the Notifications tab, in the Additional section:
Select the event that will cause the notification.
Select the recipient of the notification.
Select the process data that contains the attached notification template. You can choose the custom template created or use the default WorkflowGen template.
Templates
To create a template, use a text editor to create a file as follows:
Subject
To create a custom subject line for the templates, the first line in the HTML template must be SUBJECT:
followed by the subject line to display. Macros may also be used here.
HTML
Create an HTML page that will act as a template for the email. In order to support Unicode, we recommend saving the file using UTF-8 encoding and adding a UTF-8 character set in the header of the HTML page, as shown below. CSS styles can also be applied within the HTML page.
Embedded images
Add images to standard notification templates (custom or built-in, e.g. \wfgen\App_Data\Templates\Emails
). Image tags whose source (src=""
) begin with http
are not included in the email and simply related. Image tags whose source begins with a drive letter (e.g. C:\
) will be included in the email and result in a larger size email. However a connection to the server is not required.
📌 Examples
The image is included in the message:
The image is not included in the message:
📌 Sample HTML template
Text
A non-Unicode text notification template can be created using a text editor such as Notepad and must be saved as a .txt
file.
📌 Sample text template
Macros
In addition to some regular macros that are available, the following macros may also be used in the custom notification templates.
Macro | Remarks |
| A process data value where |
| Retrieves the description of a process data |
| A process data value where |
| A link will be displayed to launch the action directly from the notification |
| A link will be displayed to view the action follow-up form directly from the notification |
Last updated