<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Customize email template  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65810#M22235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When starting a workflow, there is an checkbox for sending a email notification. We would like to customize that email with our own email-template. How do we that without changing the default template?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 15:47:01 GMT</pubDate>
    <dc:creator>rich1</dc:creator>
    <dc:date>2018-02-13T15:47:01Z</dc:date>
    <item>
      <title>Customize email template</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65810#M22235</link>
      <description>When starting a workflow, there is an checkbox for sending a email notification. We would like to customize that email with our own email-template. How do we that without changing the default template?</description>
      <pubDate>Tue, 13 Feb 2018 15:47:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65810#M22235</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2018-02-13T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Customize email template</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65811#M22236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two files which are responsible for sending the email notification in alfresco.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/source/java/org/alfresco/repo/workflow/WorkflowNotificationUtils.java" title="https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/source/java/org/alfresco/repo/workflow/WorkflowNotificationUtils.java" rel="nofollow noopener noreferrer"&gt;community-edition-old/WorkflowNotificationUtils.java at master · Alfresco/community-edition-old · GitHub&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/source/java/org/alfresco/repo/workflow/activiti/tasklistener/TaskNotificationListener.java" title="https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/source/java/org/alfresco/repo/workflow/activiti/tasklistener/TaskNotificationListener.java" rel="nofollow noopener noreferrer"&gt;community-edition-old/TaskNotificationListener.java at master · Alfresco/community-edition-old · GitHub&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You need to extend above two files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TaskNotificationListener is having one function named as notify, that is the function in which you need to add all the custom variables/properties which you want to use in ftl template.So for example if you would like to add some custom property named as &lt;EM&gt;inv:invoice_number&lt;/EM&gt; in the email then you can fetch it in this files and add it in variable.Finally inside this function it is calling a method which is in WorkflowNotificationUtils.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WorkflowNotificationUtils contains many function, you can create one of yours and call that from your notify function which is in TaskNotificationListener.WorkflowNotificationUtils&amp;nbsp; also defines the template , so you can change that as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For extending above two files , you need to create beans as per below in &lt;EM style="text-decoration: underline;"&gt;service-context.xml&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&amp;lt;bean id="customWorkflowNotification" class="com.alfresco.repo.workflow.CustomWorkflowNotificationUtils"&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property name="workflowService" ref="workflowServiceImpl"/&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property name="nodeService" ref="NodeService"/&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property name="notificationService" ref="NotificationService"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;bean id="activitiTaskNotificationListener" class="com.alfresco.repo.workflow.activiti.tasklistener.CustomTaskNotificationListener" depends-on="activitiWorkflowManager"&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property name="propertyConverter" ref="activitiPropertyConverter" /&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property name="workflowNotification" ref="customWorkflowNotification" /&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property name="nodeService" ref="NodeService"/&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property ref="PersonService" name="personService" /&amp;gt;&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;lt;property ref="AuthenticationService" name="authenticationService" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 18:58:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65811#M22236</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-13T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Customize email template</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65812#M22237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for that.&lt;BR /&gt;and how can I use this custom notification? in other words how to override the default one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2019 10:08:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65812#M22237</guid>
      <dc:creator>emadhusam</dc:creator>
      <dc:date>2019-09-02T10:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customize email template</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65813#M22238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;What do you mean:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;How do we that without changing the default template?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't need to change workflow, you just&amp;nbsp;upload&amp;nbsp;new version of template.&lt;/P&gt;&lt;P&gt;Repository&amp;gt; Data Dictionary&amp;gt; Email Templates&amp;gt; Workflow Notification&amp;gt;&amp;nbsp;wf-email.html.ftl&lt;/P&gt;&lt;P&gt;Default template stay in the system in version 1.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2019 13:32:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customize-email-template/m-p/65813#M22238</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2019-09-02T13:32:25Z</dc:date>
    </item>
  </channel>
</rss>

