<?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 How to modify collection on multi-instance.  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21793#M9570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are creating POC for a project where we will have 4 stages of approval. Let's&amp;nbsp;say the 4 stages are&lt;/P&gt;&lt;P&gt;1. Accountant&lt;/P&gt;&lt;P&gt;2. Manager&lt;/P&gt;&lt;P&gt;3. Owner&lt;/P&gt;&lt;P&gt;4. Delivery Head&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A process has started and right now the user task i.e. approval is at the Accountant level. The multi-instance&amp;nbsp;will loop in a collection returned from Java Service class. While the loop is running for that particular set of users, I want to &lt;STRONG&gt;push&lt;/STRONG&gt; a new user in it. I'm able to add more users in the collections of manager, owner and Delivery Head because the approval stage is on Accountant Level and the collection call for those approvers is not performed yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to add new users in the current running loop collection i.e. of Accountant collection? If yes, Please suggest a way, preferably using Java.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2019 15:20:30 GMT</pubDate>
    <dc:creator>aakashsky</dc:creator>
    <dc:date>2019-02-08T15:20:30Z</dc:date>
    <item>
      <title>How to modify collection on multi-instance.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21793#M9570</link>
      <description>Hi Team,&amp;nbsp;We are creating POC for a project where we will have 4 stages of approval. Let's&amp;nbsp;say the 4 stages are1. Accountant2. Manager3. Owner4. Delivery HeadA process has started and right now the user task i.e. approval is at the Accountant level. The multi-instance&amp;nbsp;will loop in a collection return</description>
      <pubDate>Fri, 08 Feb 2019 15:20:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21793#M9570</guid>
      <dc:creator>aakashsky</dc:creator>
      <dc:date>2019-02-08T15:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify collection on multi-instance.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21794#M9571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" data-value="0"&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class="" data-post-id="54861208"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;You can use a boundary signal event on your multi-instance use task/sub-process, which will cancel all the currently running tasks and create new tasks for the updated collection.&lt;/P&gt;&lt;P&gt;below diagram might help&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.stack.imgur.com/OosUr.png" rel="nofollow noreferrer noopener"&gt;&lt;IMG alt="enter image description here" src="https://i.stack.imgur.com/OosUr.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: you will have to call the signal (from your code) after you have updated your collection with &lt;CODE&gt;runtimeService.signalEventReceived("yourSignalId", "yourProcessInstanceID");&lt;/CODE&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:17:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21794#M9571</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2019-02-25T07:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify collection on multi-instance.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21795#M9572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't want to replace it with the new collection, we want to update it and continue. E.g. I want to add a new resource into the collection or if we want to change the sequence of items in the collection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 09:46:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21795#M9572</guid>
      <dc:creator>aakashsky</dc:creator>
      <dc:date>2019-02-25T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify collection on multi-instance.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21796#M9573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i don't think its possible to "update" values on the fly. the execution will simply replace your old list with a new one. anyways you won't be able to refer to the old list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 11:58:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-collection-on-multi-instance/m-p/21796#M9573</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2019-02-25T11:58:43Z</dc:date>
    </item>
  </channel>
</rss>

