<?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: Inside a multi-instance subprocess NOT sequential, we must check a condition with the value of a variable that has to be different for each subprocess's instance launched. The condition should be a JUEL expression of this kind:  ${foundFile_${loopCoun in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/inside-a-multi-instance-subprocess-not-sequential-we-must-check/m-p/4590#M2091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A __default_attr="165565" __jive_macro_name="user" _jive_internal="true" class="jive_macro jive_macro_user link-titled" href="https://community.alfresco.com/people/kodiak" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate more on your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a unit test to share?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thong Huynh&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jan 2017 04:48:13 GMT</pubDate>
    <dc:creator>thuynh</dc:creator>
    <dc:date>2017-01-27T04:48:13Z</dc:date>
    <item>
      <title>Inside a multi-instance subprocess NOT sequential, we must check a condition with the value of a variable that has to be different for each subprocess's instance launched. The condition should be a JUEL expression of this kind:  ${foundFile_${loopCounter}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/inside-a-multi-instance-subprocess-not-sequential-we-must-check/m-p/4589#M2090</link>
      <description>Seeking any valid syntax building that it is admitted by Activiti.</description>
      <pubDate>Thu, 26 Jan 2017 08:30:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/inside-a-multi-instance-subprocess-not-sequential-we-must-check/m-p/4589#M2090</guid>
      <dc:creator>kodiak</dc:creator>
      <dc:date>2017-01-26T08:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inside a multi-instance subprocess NOT sequential, we must check a condition with the value of a variable that has to be different for each subprocess's instance launched. The condition should be a JUEL expression of this kind:  ${foundFile_${loopCoun</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/inside-a-multi-instance-subprocess-not-sequential-we-must-check/m-p/4590#M2091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A __default_attr="165565" __jive_macro_name="user" _jive_internal="true" class="jive_macro jive_macro_user link-titled" href="https://community.alfresco.com/people/kodiak" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate more on your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a unit test to share?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thong Huynh&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 04:48:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/inside-a-multi-instance-subprocess-not-sequential-we-must-check/m-p/4590#M2091</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-01-27T04:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inside a multi-instance subprocess NOT sequential, we must check a condition with the value of a variable that has to be different for each subprocess's instance launched. The condition should be a JUEL expression of this kind:  ${foundFile_${loopCoun</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/inside-a-multi-instance-subprocess-not-sequential-we-must-check/m-p/4591#M2092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, it is my first time here in this forum, and I was wrong introducing inside title the full question text, resulting in final part of it truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No unit test yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So proceed to trying to&amp;nbsp;explain it&amp;nbsp;again:&lt;/P&gt;&lt;P&gt;We have multi-instance whole subprocess and would like to be NOT sequential, becuase of trying&amp;nbsp;to download several files from a repository in parallel way (most efficient). For logic purposes, we must check a condition based on found or not each one of these files in that repository. So, the boolean variable inner name 'foundFile' has to of different name inside each of the instance deployed (as it is parallel, other way&amp;nbsp;Activiti would not know what of the 'n-sime' foundFile value has to take in consideration). The way we have found to make this is to add a suffix to that variable&amp;nbsp;name&amp;nbsp;with '_${loopCounter}' value, index established as unique for each instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that evaluate this condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${foundFile_${loopCounter} == true}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not valid according to EL v2.2 expressions specification (nesting $ references), which is the one that manages our Activiti 5.19.0 versión.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas to make a condition based expression that be valid and follows the rule of make different variable names for each instance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 08:40:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/inside-a-multi-instance-subprocess-not-sequential-we-must-check/m-p/4591#M2092</guid>
      <dc:creator>kodiak</dc:creator>
      <dc:date>2017-01-27T08:40:01Z</dc:date>
    </item>
  </channel>
</rss>

