<?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: Exception when multi-instance service task itself inside a loop in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35378#M14926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this is a known issue. if in some point in the process the list, that the multi-instance service task is using, becomes empty - then we'll get this exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Activiti/Activiti/issues/748" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/issues/748&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2018 09:27:03 GMT</pubDate>
    <dc:creator>yevgenyl</dc:creator>
    <dc:date>2018-08-06T09:27:03Z</dc:date>
    <item>
      <title>Exception when multi-instance service task itself inside a loop</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35375#M14923</link>
      <description>I have the below process. In my process there is a multi-instance service task that&amp;nbsp;itself is a part of a loop.The issue is that I'm getting the below exception after the process is finished.If I'll make Service Task 3 not to be multi-instanced or if&amp;nbsp;Service Task 3 will not be part of the bigger loo</description>
      <pubDate>Thu, 02 Aug 2018 13:58:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35375#M14923</guid>
      <dc:creator>yevgenyl</dc:creator>
      <dc:date>2018-08-02T13:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when multi-instance service task itself inside a loop</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35376#M14924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some code that can be use to reproduce the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 10:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35376#M14924</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-08-03T10:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when multi-instance service task itself inside a loop</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35377#M14925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Service Task 2 and Service Task 3 are doing nothing.&lt;/P&gt;&lt;P&gt;Service Task 1 is below.&lt;/P&gt;&lt;P&gt;"index" is just a variable I'm passing when starting the flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class ServiceTask1 implements JavaDelegate&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt; public void execute(DelegateExecution execution) throws Exception &lt;BR /&gt; {&lt;BR /&gt; int index = execution.getVariable("index" , Integer.class);&lt;BR /&gt; List&amp;lt;String&amp;gt; myList = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt; &lt;BR /&gt; if(index &amp;gt; 0)&lt;BR /&gt; {&lt;BR /&gt; for(int i = 0 ; i&amp;lt;index ; i++)&lt;BR /&gt; {&lt;BR /&gt; myList.add("test " + i);&lt;BR /&gt; }&lt;BR /&gt; index--;&lt;BR /&gt; execution.setVariable("index", index);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; execution.setVariable("myList", myList);&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 10:58:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35377#M14925</guid>
      <dc:creator>yevgenyl</dc:creator>
      <dc:date>2018-08-03T10:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when multi-instance service task itself inside a loop</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35378#M14926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this is a known issue. if in some point in the process the list, that the multi-instance service task is using, becomes empty - then we'll get this exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Activiti/Activiti/issues/748" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/issues/748&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 09:27:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/exception-when-multi-instance-service-task-itself-inside-a-loop/m-p/35378#M14926</guid>
      <dc:creator>yevgenyl</dc:creator>
      <dc:date>2018-08-06T09:27:03Z</dc:date>
    </item>
  </channel>
</rss>

