<?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: Sending Email notification to all without loop in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221615#M174745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are there any ideas? Actually there is no any scripting manuals.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2009 08:13:50 GMT</pubDate>
    <dc:creator>quasar</dc:creator>
    <dc:date>2009-12-30T08:13:50Z</dc:date>
    <item>
      <title>Sending Email notification to all without loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221614#M174744</link>
      <description>Hi all!I've added some email notification functionality to WEB-INF\classes\alfresco\workflow\parallelreview_processdefinition.xmlThis works fine with a few assignees but if the number of assignees is more than 10 this loop slows down significantly. I've got an idea which is to collect all the email</description>
      <pubDate>Mon, 28 Dec 2009 14:35:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221614#M174744</guid>
      <dc:creator>quasar</dc:creator>
      <dc:date>2009-12-28T14:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email notification to all without loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221615#M174745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are there any ideas? Actually there is no any scripting manuals.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 08:13:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221615#M174745</guid>
      <dc:creator>quasar</dc:creator>
      <dc:date>2009-12-30T08:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email notification to all without loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221616#M174746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what you trying to do here, but i guess you assign a task to a group of people. So, you can loop that group in js and send email to each one of them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var gr_members = people.getMembers(group);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (var i=0; i &amp;lt; gr_members.length; i++ ) &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var mail = actions.create("mail");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mail.parameters.to = gr_members[i].properties.email;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mail.parameters.subject = subject;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mail.parameters.from = "alfresco";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mail.parameters.text = "Document is waiting for your response on Alfresco";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mail.execute(bpm_package);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;logger.log("Email was sent to " + gr_members[i].properties.userName + ".");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 10:51:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221616#M174746</guid>
      <dc:creator>msvoren</dc:creator>
      <dc:date>2009-12-30T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email notification to all without loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221617#M174747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your answer! But I'm doing the same thing you described. This approach is very slow if the number of people in group more than 10! I want to collect all email addresses into one string by looping thru bpm_assignees and then send email once only. This should be much faster than sending email to every person. I'm wondering how to implement it. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 12:54:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221617#M174747</guid>
      <dc:creator>quasar</dc:creator>
      <dc:date>2009-12-30T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email notification to all without loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221618#M174748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The mail action can send to a list of people.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the code for the MailActionExecutor for the properties to set, from memory its something like SEND_MANY.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 13:00:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221618#M174748</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-12-30T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email notification to all without loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221619#M174749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found the MailActionExecuter class but there're no any examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you post snippets of code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 17:58:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-notification-to-all-without-loop/m-p/221619#M174749</guid>
      <dc:creator>quasar</dc:creator>
      <dc:date>2009-12-30T17:58:26Z</dc:date>
    </item>
  </channel>
</rss>

