<?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 Script Task -&amp;gt;(to) Multiple E-mails in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/script-task-gt-to-multiple-e-mails/m-p/181930#M135060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First thanks for making this tool, it seems hot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm doing my first proof of concept and I observed that the best way to do my logic would be through a "Script Task"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my initial flow now is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Start Task -&amp;gt; E-mail Task (Saying hey I started the process, let's rumble) -&amp;gt; Script Task (Groovy going to web service and fetching a list of users with e-mails)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want to build another leg which is Send out e-mails to these users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm retrieving from the result from the webservice as the following in the Groovy Script: Users[] which will provide me the list users+e-mails from the web service. From what I read in teh forum I would probaly expose it as execution.setVariable("userEmail", $[User.email])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but now what? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want to make use of this list and send out e-mails through a next step task which would be the Messaging Task how would I encapsulate to I can do it from te results I obtained in the Script Task? I want it so I can send out as many e-mails as I have User objects in my list, it would be the same e-mail body and header, I just want to change a link I will put in the body, which I will reference as ${linkAttachment}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 11:49:15 GMT</pubDate>
    <dc:creator>ramonck</dc:creator>
    <dc:date>2014-08-04T11:49:15Z</dc:date>
    <item>
      <title>Script Task -&gt;(to) Multiple E-mails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-gt-to-multiple-e-mails/m-p/181930#M135060</link>
      <description>Hey guys,First thanks for making this tool, it seems hot.I'm doing my first proof of concept and I observed that the best way to do my logic would be through a "Script Task"So my initial flow now is: Start Task -&amp;gt; E-mail Task (Saying hey I started the process, let's rumble) -&amp;gt; Script Task (Gro</description>
      <pubDate>Mon, 04 Aug 2014 11:49:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-gt-to-multiple-e-mails/m-p/181930#M135060</guid>
      <dc:creator>ramonck</dc:creator>
      <dc:date>2014-08-04T11:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script Task -&gt;(to) Multiple E-mails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-gt-to-multiple-e-mails/m-p/181931#M135061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One possibility is to use multiinstance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#bpmnMultiInstance" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#bpmnMultiInstance&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 05:34:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-gt-to-multiple-e-mails/m-p/181931#M135061</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-08-05T05:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script Task -&gt;(to) Multiple E-mails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-task-gt-to-multiple-e-mails/m-p/181932#M135062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much, you got exactly what I asked for &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will try it and will let you know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that the completionCondition is optional, I don't want to fill in a completionCondition just iterate through the list of objects, seems to fit in perfect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 11:15:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-task-gt-to-multiple-e-mails/m-p/181932#M135062</guid>
      <dc:creator>ramonck</dc:creator>
      <dc:date>2014-08-05T11:15:02Z</dc:date>
    </item>
  </channel>
</rss>

