<?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 Re: Notify always whenever a new task is assigned in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36603#M15440</link>
    <description>&lt;P&gt;In User tasks there is the "Allow Email notifications" checkbox that you can use, and define the content of the email with the "Email template" field.&amp;nbsp; When the task is re-assigned to other user I think the only option is a Task listener. If you find another simpler approach, please share it. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 15:37:03 GMT</pubDate>
    <dc:creator>jose_leon_coupa</dc:creator>
    <dc:date>2020-03-23T15:37:03Z</dc:date>
    <item>
      <title>Notify always whenever a new task is assigned</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36602#M15439</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is it possible to send a notification email to a user &lt;STRONG&gt;always&amp;nbsp;whenever&lt;/STRONG&gt;&amp;nbsp;there is a new task assigned to him (no matter what task)?&lt;/P&gt;&lt;P&gt;Right now, I have to create TaskListeners in every single process, in every single task. Is there a better way to do it?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 14:55:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36602#M15439</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-03-23T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Notify always whenever a new task is assigned</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36603#M15440</link>
      <description>&lt;P&gt;In User tasks there is the "Allow Email notifications" checkbox that you can use, and define the content of the email with the "Email template" field.&amp;nbsp; When the task is re-assigned to other user I think the only option is a Task listener. If you find another simpler approach, please share it. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 15:37:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36603#M15440</guid>
      <dc:creator>jose_leon_coupa</dc:creator>
      <dc:date>2020-03-23T15:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Notify always whenever a new task is assigned</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36604#M15441</link>
      <description>&lt;P&gt;That&amp;nbsp; is exactly what am I looking for! Could you please share more information on how to find this option?&lt;/P&gt;&lt;P&gt;After a quick research, I understand that it is not an option in the Alfresco Share but within some Process Designer (&lt;SPAN class="ph"&gt;App Designer?)&lt;/SPAN&gt;. Is this app&amp;nbsp; avaiable from Community version?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 20:27:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36604#M15441</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-03-23T20:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Notify always whenever a new task is assigned</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36605#M15442</link>
      <description>&lt;P&gt;I'm using APS and this is an option of the BPMN editor in activiti-app. If you have put a "User task" in the canvas, in the properties pane you will find the option to send the email. The Email templates are in the: Identity Management -&amp;gt; Tenants -&amp;gt; Email template.&lt;/P&gt;&lt;P&gt;I haven't worked with the Community Edition, so I'm not sure whether this is available there too; sorry.&lt;/P&gt;&lt;P&gt;Would you explain how are you implemented this using listeners? Yesterday I was trying this approach woth no success.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 08:27:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36605#M15442</guid>
      <dc:creator>jose_leon_coupa</dc:creator>
      <dc:date>2020-03-25T08:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Notify always whenever a new task is assigned</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36606#M15443</link>
      <description>&lt;P&gt;Unfortunately, in the community version, we do not have activity-app.&lt;/P&gt;&lt;P&gt;&lt;U&gt;If you want to implement it using TaskListeners:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1. In your task properties add new TaskListener as Java class on event "complete".&lt;/P&gt;&lt;P&gt;2. Create a Java class and inside the &lt;EM&gt;execute&lt;/EM&gt; function (don't forget about&amp;nbsp;&lt;EM&gt;implements TaskListener&amp;nbsp;&lt;/EM&gt;) call function similar to this one: (&lt;EM&gt;getServiceRegistry()&lt;/EM&gt; is my custom function taken from&amp;nbsp;&lt;EM&gt;ActivitiScriptBase.java&lt;/EM&gt;)&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public void sendEmail(String recipient, String taskId) {
	String message_body = "&amp;lt;p&amp;gt;My HTML message &amp;lt;b&amp;gt;";
        ActionService actionService = getServiceRegistry().getActionService();
        Action mailAction = actionService.createAction(MailActionExecuter.NAME);
        mailAction.setParameterValue(MailActionExecuter.PARAM_SUBJECT, Notification.SUBJECT);        
        mailAction.setParameterValue(MailActionExecuter.PARAM_TO, recipient);
        mailAction.setParameterValue(MailActionExecuter.PARAM_FROM, Notification.FROM_ADDRESS);
        mailAction.setParameterValue(MailActionExecuter.PARAM_HTML, message_body);
        
        actionService.executeAction(mailAction, null);
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Mar 2020 13:46:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/notify-always-whenever-a-new-task-is-assigned/m-p/36606#M15443</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-03-25T13:46:25Z</dc:date>
    </item>
  </channel>
</rss>

