<?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 Multiinstance subprocess erroring on boundary condition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-subprocess-erroring-on-boundary-condition/m-p/228081#M181211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have&amp;nbsp; the following configuration to kick off multi-instance sub process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.Collection = ${execution.getVariable("PAYLOAD")} – this the Payload&amp;nbsp; variable&amp;nbsp; at the parent process level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Completion condition = ${nrOfCompletedInstances/nrOfInstances &amp;gt; 0.95}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Subprocess gets called the number of times as per the collection list, but on the boundary condition it errors out!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For eg: I have 3 items in the collection. The subprocess gets called for 3 times. On the 4th iteration it throws the following error. It should not even be going to the 4th iteration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;2016-05-16 15:39:35.041 ERROR 3747 — [cTaskExecutor-1] o.a.e.i.a.ExecuteAsyncRunnable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Job 20 failed&lt;BR /&gt;&lt;BR /&gt;org.activiti.engine.ActivitiIllegalArgumentException: ${execution.getVariable("PAYLOAD")}' didn't resolve to a Collection&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior.resolveNrOfInstances(MultiInstanceActivityBehavior.java:137) ~[activiti-engine-5.19.0.2.jar:5.19.0.2]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior.execute(MultiInstanceActivityBehavior.java:97) ~[activiti-engine-5.19.0.2.jar:5.19.0.2]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60) ~[activiti-engine-5.19.0.2.jar:5.19.0.2]&lt;BR /&gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 19:48:26 GMT</pubDate>
    <dc:creator>ad1</dc:creator>
    <dc:date>2016-05-16T19:48:26Z</dc:date>
    <item>
      <title>Multiinstance subprocess erroring on boundary condition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-subprocess-erroring-on-boundary-condition/m-p/228081#M181211</link>
      <description>I have&amp;nbsp; the following configuration to kick off multi-instance sub process.1.Collection = ${execution.getVariable("PAYLOAD")} – this the Payload&amp;nbsp; variable&amp;nbsp; at the parent process level.2. Completion condition = ${nrOfCompletedInstances/nrOfInstances &amp;gt; 0.95}The Subprocess gets called the number of</description>
      <pubDate>Mon, 16 May 2016 19:48:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-subprocess-erroring-on-boundary-condition/m-p/228081#M181211</guid>
      <dc:creator>ad1</dc:creator>
      <dc:date>2016-05-16T19:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiinstance subprocess erroring on boundary condition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-subprocess-erroring-on-boundary-condition/m-p/228082#M181212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without example process and code to show what you're doing, this is impossible to answer, I'm afraid.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 16:42:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-subprocess-erroring-on-boundary-condition/m-p/228082#M181212</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-18T16:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiinstance subprocess erroring on boundary condition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-subprocess-erroring-on-boundary-condition/m-p/228083#M181213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange&amp;nbsp; that it happened only when I had set Collection and&amp;nbsp; completion condition. I removed both of them and just put in the&amp;nbsp; Loop Cardinality and everything is good now. It loops exactly the desired number of times&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 16:50:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-subprocess-erroring-on-boundary-condition/m-p/228083#M181213</guid>
      <dc:creator>ad1</dc:creator>
      <dc:date>2016-05-18T16:50:37Z</dc:date>
    </item>
  </channel>
</rss>

