<?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: Multi Instance Set Variable On Item In Current Loop in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-set-variable-on-item-in-current-loop/m-p/218247#M171377</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;There are 2 ways I can think of to do this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Approach 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;———–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need not go for a sub process but have one service task where in you loop from 1 to n persons and then based on some condition, you remove the unwanted ones from the list. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Approach 2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;————&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you have used, make use of a call activity to loop over the persons and in the sub process have one service task to check if the current person object from the collection which was passed as a variable to the sub process can be part of the list or not. If it cannot be part of the list then just remove the person object from the list and overwrite the process instance variables collection with the new list. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2016 05:15:26 GMT</pubDate>
    <dc:creator>hari</dc:creator>
    <dc:date>2016-02-25T05:15:26Z</dc:date>
    <item>
      <title>Multi Instance Set Variable On Item In Current Loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-set-variable-on-item-in-current-loop/m-p/218246#M171376</link>
      <description>Hello All,I'm looking for a little assistance when using multi instance processes.Here's my scenario…The goal of my workflow is to essentially take a list of people and filter that list down based on a series of conditions. So for example, I might start with a list of 100 people and have a result of</description>
      <pubDate>Wed, 24 Feb 2016 22:21:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-set-variable-on-item-in-current-loop/m-p/218246#M171376</guid>
      <dc:creator>jamie_dulude</dc:creator>
      <dc:date>2016-02-24T22:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Instance Set Variable On Item In Current Loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-set-variable-on-item-in-current-loop/m-p/218247#M171377</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;There are 2 ways I can think of to do this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Approach 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;———–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need not go for a sub process but have one service task where in you loop from 1 to n persons and then based on some condition, you remove the unwanted ones from the list. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Approach 2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;————&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you have used, make use of a call activity to loop over the persons and in the sub process have one service task to check if the current person object from the collection which was passed as a variable to the sub process can be part of the list or not. If it cannot be part of the list then just remove the person object from the list and overwrite the process instance variables collection with the new list. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 05:15:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-set-variable-on-item-in-current-loop/m-p/218247#M171377</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-02-25T05:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Instance Set Variable On Item In Current Loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multi-instance-set-variable-on-item-in-current-loop/m-p/218248#M171378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the help. I was able to get it to work by doing something similar to Approach #2. My app that connects to the activiti workflow is written in PHP so I was trying to do everything over rest API calls, but I'm only able to get it to work by dipping down to that java layer. Oh well no biggy. Thanks again. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 22:44:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multi-instance-set-variable-on-item-in-current-loop/m-p/218248#M171378</guid>
      <dc:creator>jamie_dulude</dc:creator>
      <dc:date>2016-02-25T22:44:04Z</dc:date>
    </item>
  </channel>
</rss>

