8.6.4 Notification mails
8.6.4.1 Task URL
In the task assignment notification mails, an URL to the task is included. This URL is configured in the myconfig.xml (which is located in <daisy data dir>/conf) and is by default the following:
<taskURL>http://localhost:8888/daisy/${site}/workflow/performtask?taskId=${taskId}</taskURL>
The variable ${site} contains the value of the
8.6.4.2 Mail templates
The mechanism to load mail templates uses a fallback system allowing a mail template to be loaded from different locations. The default mail templates are included inside the workflow implementation jar, but it is possible to replace this with custom versions. Mail templates are also locale-dependent, using a fallback system similar to the Java resource bundles. The mail template language is Freemarker.
The locations for loading mail templates are configured in the myconfig.xml, the default configuration is as follows:
<mailTemplates>
<!-- built-in templates (loaded from the classpath) -->
<location>resource:/org/outerj/daisy/workflow/serverimpl/mailtemplates/</location>
<!-- custom templates in the datadir -->
<location>${daisy.datadir}/templates/workflow/</location>
</mailTemplates>
Previous