Message templates are list of templates to be used in notifications like task assignment or reminders. By default emakin uses predefined templates but message contents can be customized by creating a message template.
There two type of message template as following:
Standard
Uses plain text or HTML format and can be use {{ ... }} literals to replace workflow data. For more information please refer to data templates.
In this template you can use the following variables with $ prefix:
Variable Name | Description |
---|---|
$Id | Id number of work item |
$WorkItem | Current work item |
$Instance | Current workflow instance |
$Recipients | Comma separated names of assigned users. This value always contains the list of users. |
$ApplicationName | Name of application ( Ex: mydomain.emakin.com ) |
$DomainName | Name of current domain ( Ex: mydomain.emakin.com ) |
$DomainUrl | Address of domain url ( Ex: http(s)://mydomain.emakin.com ) |
$LogoUrl | Url of domain logo |
$AssignedTo | Comma separated name of assigned identities. This value may contain user or position type identities. |
By default emakin uses following templates that stored in "configuration/messagetemplates.xml" file:
Task Notification
<html> <body style="margin:0; padding:0"> <div style="margin:1em"> <p><b>{{ $Recipients }}</b>,</p> <p>You have a new task named {{ $WorkItem.Caption }}.</p> <p> <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a> </p> <p>{{ $WorkItem.Instructions }}</p> <p><u>Details</u> <br></br> <b>Form number</b> {{ $Instance.Number }},<br></br> {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }} </p> </div> <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666"> <a href="{{ $DomainUrl }}/"> <img src="{{ $LogoUrl }}" border="0"></img> </a> </div> </body> </html>
First Reminder
<html> <body style="margin:0; padding:0"> <div style="margin:1em"> <p><b>{{ $Recipients }}</b>,</p> <p>{{ $WorkItem.Caption }} still waiting in your task list. Please review.</p> <p> <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a> </p> <p>{{ $WorkItem.Instructions }}</p> <p><u>Details</u> <br></br> <b>Form number</b> {{ $Instance.Number }},<br></br> {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }} </p> </div> <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666"> <a href="{{ $DomainUrl }}/"> <img src="{{ $LogoUrl }}" border="0"></img> </a> </div> </body> </html>
Repeating Reminder
<html> <body style="margin:0; padding:0"> <div style="margin:1em"> <p><b>{{ $Recipients }}</b>,</p> <p>{{ $WorkItem.Caption }} still waiting in your task list. Please review.</p> <p> <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a> </p> <p>{{ $WorkItem.Instructions }}</p> <p><u>Details</u> <br></br> <b>Form number</b> {{ $Instance.Number }},<br></br> {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }} </p> </div> <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666"> <a href="{{ $DomainUrl }}/"> <img src="{{ $LogoUrl }}" border="0"></img> </a> </div> </body> </html>
Deadline
<html> <body style="margin:0; padding:0"> <div style="margin:1em"> <p><b>{{ $Recipients }}</b>,</p> <p>Your {{ $WorkItem.Caption }} task is deadlined and automatically closed.</p> <p> <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a> </p> <p><u>Details</u> <br></br> <b>Form number</b> {{ $Instance.Number }},<br></br> </p> </div> <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666"> <a href="{{ $DomainUrl }}/"> <img src="{{ $LogoUrl }}" border="0"></img> </a> </div> </body> </html>
Watch
<html> <body style="margin:0; padding:0"> <div style="margin:1em"> <p><b>{{ $Recipients }}</b>,</p> <p>A new {{ $WorkItem.Caption }} task assigned to {{ $AssignedTo }}. This email is been sent for your information and you can find task in your watch list later.</p> <p> <a style="display:inline-block; padding:5px; border:outset 1px; background-color: #D7DEF0; text-decoration:none;" href="{{ $DomainUrl }}/app/?/workitem/{{ $WorkItem.Id }}">{{ $WorkItem.Caption }}</a> </p> <p>{{ $WorkItem.Instructions }}</p> <p><u>Details</u> <br></br> <b>Form number</b> {{ $Instance.Number }},<br></br> {{ if $WorkItem.DeadlineDate then <b>Deadline date</b> {{ $WorkItem.DeadlineDate }} }} </p> </div> <div style="margin:0 0 0 0; padding:0.5em 0 0.5em 1em;background-color:#666"> <a href="{{ $DomainUrl }}/"> <img src="{{ $LogoUrl }}" border="0"></img> </a> </div> </body> </html>
Because of mail client notifications do not include any external link (except images) to resources like style sheets or scripts. Otherwise mail client may refuse to load resources because of security and privacy.
XSLT
Uses industry standard XSLT format but requires some technical skills. For more information please refer to https://www.google.com.tr/search?q=xslt