<?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: A process did not continue from one subprocess to another in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246331#M199461</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;BLOCKQUOTE class="jive-quote"&gt;Is there a way I could "poke" the process to continue?&lt;/BLOCKQUOTE&gt;&lt;CODE&gt;org.activiti.engine.RuntimeService#signal(java.lang.String, java.util.Map&amp;lt;java.lang.String,java.lang.Object&amp;gt;)&lt;/CODE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, how would I go about figuring out what went wrong? I have a log with all the queries due to the DEBUG setting, if this would help any?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I would expect some exception during the logging. You can check it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(or create jUnit test)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 12:40:36 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2016-06-28T12:40:36Z</dc:date>
    <item>
      <title>A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246330#M199460</link>
      <description>I have a process, which consists of 2 subprocesses. When the first subprocess finishes, it should immediately continue to the next subprocess - there are no conditions to prevent that. This has worked as desired for several hundred process instances. However, there is now one process where after rea</description>
      <pubDate>Tue, 28 Jun 2016 11:30:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246330#M199460</guid>
      <dc:creator>mcajvar</dc:creator>
      <dc:date>2016-06-28T11:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246331#M199461</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;BLOCKQUOTE class="jive-quote"&gt;Is there a way I could "poke" the process to continue?&lt;/BLOCKQUOTE&gt;&lt;CODE&gt;org.activiti.engine.RuntimeService#signal(java.lang.String, java.util.Map&amp;lt;java.lang.String,java.lang.Object&amp;gt;)&lt;/CODE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, how would I go about figuring out what went wrong? I have a log with all the queries due to the DEBUG setting, if this would help any?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I would expect some exception during the logging. You can check it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(or create jUnit test)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:40:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246331#M199461</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-06-28T12:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246332#M199462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no exception present in the logs. That is part of the reason I don't know how I would go about reproducing this as this is the first and only time this has happened.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try the RuntimeService.signal() method, thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:38:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246332#M199462</guid>
      <dc:creator>mcajvar</dc:creator>
      <dc:date>2016-06-28T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246333#M199463</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;so I've been digging a bit more into this issue, querying the database before and after trying out the RuntimeService.signal() method. Here are my findings so far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the image of my process: &lt;/SPAN&gt;&lt;A href="https://postimg.org/image/3yxy0l94x/" rel="nofollow noopener noreferrer"&gt;https://postimg.org/image/3yxy0l94x/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before I did anything, this was the status in the database:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;select id_, act_id_, task_id_, start_time_, end_time_ from ACT_HI_ACTINST where PROC_INST_ID_ = '229134' order by START_TIME_ desc;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;236669 endevent5&amp;nbsp; 22.06.16 09:51:57,271000000 22.06.16 09:51:57,271000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;236668 inclusivegateway3&amp;nbsp; 22.06.16 09:51:57,252000000 22.06.16 09:51:57,271000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230607 inclusivegateway3&amp;nbsp; 20.06.16 14:40:40,493000000 22.06.16 09:51:57,264000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230606 mailtask2&amp;nbsp; 20.06.16 14:40:40,457000000 20.06.16 14:40:40,493000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230604 scripttask1&amp;nbsp; 20.06.16 14:40:40,449000000 20.06.16 14:40:40,457000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230597 servicetask17&amp;nbsp; 20.06.16 14:40:40,412000000 20.06.16 14:40:40,449000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230594 usertask30 230595 20.06.16 14:40:40,342000000 22.06.16 09:51:57,252000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230592 inclusivegateway2&amp;nbsp; 20.06.16 14:40:40,339000000 20.06.16 14:40:40,342000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230591 exclusivegateway17&amp;nbsp; 20.06.16 14:40:40,339000000 20.06.16 14:40:40,339000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230587 servicetask11&amp;nbsp; 20.06.16 14:40:39,032000000 20.06.16 14:40:40,339000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230132 usertask7 230133 20.06.16 13:50:25,145000000 20.06.16 14:40:39,032000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230130 scripttask6&amp;nbsp; 20.06.16 13:50:25,135000000 20.06.16 13:50:25,145000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230129 inclusivegateway1&amp;nbsp; 20.06.16 13:50:25,132000000 20.06.16 13:50:25,135000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230126 servicetask5&amp;nbsp; 20.06.16 13:50:24,961000000 20.06.16 13:50:25,132000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230123 servicetask15&amp;nbsp; 20.06.16 13:50:24,960000000 20.06.16 13:50:24,961000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230122 exclusivegateway27&amp;nbsp; 20.06.16 13:50:24,960000000 20.06.16 13:50:24,960000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230118 exclusivegateway1&amp;nbsp; 20.06.16 13:50:24,945000000 20.06.16 13:50:24,945000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;230119 servicetask14&amp;nbsp; 20.06.16 13:50:24,945000000 20.06.16 13:50:24,960000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229621 usertask10 229633 20.06.16 13:37:04,091000000 20.06.16 13:50:24,919000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229616 scripttask11&amp;nbsp; 20.06.16 13:37:04,071000000 20.06.16 13:37:04,071000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229617 scripttask3&amp;nbsp; 20.06.16 13:37:04,071000000 20.06.16 13:37:04,084000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229612 exclusivegateway15&amp;nbsp; 20.06.16 13:37:04,014000000 20.06.16 13:37:04,014000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229611 exclusivegateway26&amp;nbsp; 20.06.16 13:37:04,014000000 20.06.16 13:37:04,014000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229613 servicetask4&amp;nbsp; 20.06.16 13:37:04,014000000 20.06.16 13:37:04,071000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229558 usertask29 229570 20.06.16 13:36:39,952000000 20.06.16 13:37:04,012000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229556 scripttask10&amp;nbsp; 20.06.16 13:36:39,950000000 20.06.16 13:36:39,951000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229555 exclusivegateway24&amp;nbsp; 20.06.16 13:36:39,925000000 20.06.16 13:36:39,950000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229554 exclusivegateway23&amp;nbsp; 20.06.16 13:36:39,924000000 20.06.16 13:36:39,924000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229553 exclusivegateway25&amp;nbsp; 20.06.16 13:36:39,924000000 20.06.16 13:36:39,924000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229229 usertask3 229230 20.06.16 13:11:14,444000000 20.06.16 13:36:39,924000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229227 scripttask2&amp;nbsp; 20.06.16 13:11:14,436000000 20.06.16 13:11:14,444000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229226 exclusivegateway22&amp;nbsp; 20.06.16 13:11:14,435000000 20.06.16 13:11:14,435000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229215 servicetask8&amp;nbsp; 20.06.16 13:11:14,408000000 20.06.16 13:11:14,435000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229213 travelOrderRequestSubprocess&amp;nbsp; 20.06.16 13:11:14,407000000 20.06.16 14:40:40,412000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229214 startevent1&amp;nbsp; 20.06.16 13:11:14,407000000 20.06.16 13:11:14,408000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229136 msgStartEvent&amp;nbsp; 20.06.16 13:11:14,406000000 20.06.16 13:11:14,407000000&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the end event has been reached, but there is no record of the finished subprocess and continuation to the next one. Next I checked the executions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;select id_, parent_id_, act_id_, is_active_ from ACT_RU_EXECUTION where PROC_INST_ID_ = '229134';&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;229134&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229212 229134&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;229557 229212 usertask29 0&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This tells me that the execution of the multi instance user task (usertask29, see above query output and diagram) is still present. But since the process had continued past that point in the past, it should already have been ended, but for some reason it was not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I would like to achieve is to just "get rid" of the execution, so that the process would continue to the next subprocess. Next up I tried using RuntimeService.signal("execution id") - I used the id 229557, of the execution with the usertask29 activity id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, this had an undesired effect. The process now behaves as if continuing from the affected multi instance user task. This means that the users would get the tasks again and any processes which communicate with external applications get to do that again, which should not happen. If I check the ACT_HI_ACTINST table again, the content is the same, with these EXTRA records:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;275013 usertask10 275025 01.07.16 15:53:45,887000000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;275007 scripttask3&amp;nbsp; 01.07.16 15:53:45,122000000 01.07.16 15:53:45,887000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;275006 scripttask11&amp;nbsp; 01.07.16 15:53:45,111000000 01.07.16 15:53:45,122000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;275004 exclusivegateway15&amp;nbsp; 01.07.16 15:53:45,098000000 01.07.16 15:53:45,098000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;275003 exclusivegateway26&amp;nbsp; 01.07.16 15:53:45,098000000 01.07.16 15:53:45,098000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;275005 servicetask4&amp;nbsp; 01.07.16 15:53:45,098000000 01.07.16 15:53:45,111000000&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot figure out why and when this bug triggers, but it appears to me that under some circumstances the multi instance user execution is not ended and remains active. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thinking back to &lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/content/after-finishing-multi-instance-user-task-tasks-sometimes-remain-database-causing-integrity" rel="nofollow noopener noreferrer"&gt;an earlier problem I had&lt;/A&gt;&lt;SPAN&gt; I am guessing that the same problem appeared there - the executions were not ended and that might have caused the foreign key violation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should also add that until the start of this month we were using Activiti 5.16.1 and have now upgraded to 5.20.0.2. Before this upgrade, we've had no such problems in production. All instances where this problem occurs have appeared after the upgrade. Since my first post in this thread 2 more processes have been reported to me by users and querying the database shows yet more. I am currently sitting at 15. Not all processes get stuck, but most do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sorry for not being able to provide a unit test. If I knew how to reproduce the problem with certainty, I probably would, but since I don't… I would however gladly provide any other information to help track this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now my question is - until the issue is resolved, what can I do to get rid of the stale executions and have the processes continue WITHOUT repeating most of the subprocess?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 15:31:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246333#M199463</guid>
      <dc:creator>mcajvar</dc:creator>
      <dc:date>2016-07-01T15:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246334#M199464</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;I am still wondering if there is a way to have these processes who seem to be hanging in the air moved forward. Could I do some database magic and send a signal to the subprocess execution to have it finish itself and the process move on to the next subprocess? Or at least if I send a signal to the process is there a way I could have Activiti skip all tasks (because they have already been performed and should not be performed again) and reach the end of the subprocess that way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated, as these processes are steadily beginning to pile up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:18:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246334#M199464</guid>
      <dc:creator>mcajvar</dc:creator>
      <dc:date>2016-07-25T12:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246335#M199465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; until the issue is resolved, what can I do to get rid of the stale executions and have the processes continue WITHOUT repeating most of the subprocess?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You give a lot of details … which is good but also makes it very hard to reproduce. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the process and database, I can't immediately say 'this is wrong'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is the 'skipExpression in Activiti which allows you to skip steps in a process (not documented yet, but test here &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/usertask/SkipExpressionUserTaskTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/usertask/SkipExpressionUserTaskTest.java&lt;/A&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So am I getting it right that you have a multi instance that doesn't finish properly, but it continues in the process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be really helpful to know why this is happening in some cases … it must be variable related, if all the rest is the same?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:25:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246335#M199465</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-07-27T12:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246336#M199466</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;I have tried putting the exact same process into a test case (using both H2 and Oracle) and setting some variables during the test, but I have been unable to reproduce the issue in the test. I have not yet played around with the variables, this is something I still plan to do though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the expression skipping information, I will give it a try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So am I getting it right that you have a multi instance that doesn't finish properly, but it continues in the process?&lt;BR /&gt;It would be really helpful to know why this is happening in some cases … it must be variable related, if all the rest is the same?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that is what I suspect is happening. The multi instance user task behaves as if it had finished, the process continues, but the execution record remains in the database, thus preventing the parent execution to continue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it would help, I can set our application a more detailed log level and try to filter out the relevant entries and attach them here. I didn't do that yet because I have no idea what to look out for, or what I should expect in the log files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or if you have some other suggestions I could follow to help provide more details about this case, I'd be happy to do so.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:11:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246336#M199466</guid>
      <dc:creator>mcajvar</dc:creator>
      <dc:date>2016-07-27T13:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246337#M199467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; I didn't do that yet because I have no idea what to look out for, or what I should expect in the log files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is always interesting (to us, as engine coders) is adding&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.apache.ibatis.level=DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will give you the raw sql that goes to the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything in org.activiti is interesting to see anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:27:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246337#M199467</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-07-28T09:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246338#M199468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Heylo, McAjvar's gone seeking greener pastures and I'm his successor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've narrowed the issue down to multi instance user task handling. Our usertask29 does a peculiar thing, its activiti:collection="${expr}" expression changes values after each complete, which might be incorrect, although &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#bpmnMultiInstanceXml" rel="nofollow noopener noreferrer"&gt;the docs&lt;/A&gt;&lt;SPAN&gt; don't make this clear. I'm going to assume it's illegal use on our part, but it definitely worked in version 5.16. We're on 5.20 now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/2767caef878dad48bcbd06102d0736556ce4ecb5" rel="nofollow noopener noreferrer"&gt;this commit&lt;/A&gt;&lt;SPAN&gt;, most of the method is skipped when the list length hits 0, which is what probably causes our issue. I can't really revert this one to test, because there were other changes in between and execution.getActivity() is now also null in this case, so there's an exception. However, our process starts working if I make sure the list doesn't change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason we "need" a mutating list is because we have a list of entries that different users need to confirm, but we don't want them getting a task if their entries are already confirmed, and they get confirmed after they complete the task, so the list changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you recommend a nice pattern or solution for this? I can only come up with an extra service task that sets a list variable right before the task. Or maybe this is actually a regression, and we're allowed to mutate the list?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, and sorry for the delay!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:22:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246338#M199468</guid>
      <dc:creator>matej1</dc:creator>
      <dc:date>2016-08-26T16:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246339#M199469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The multi instance construct evaluates the number of instances when creating the multi instance activity. So if you use a mutating list, it will still use the original values that were evaluated on create time. This can result in unexpected behavior. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 06:56:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246339#M199469</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2016-08-29T06:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246340#M199470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems this was broken in 5.18.0 (according to our bisecting efforts). I wouldn't call this "unexpected behaviour", because the process enters an invalid state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached a test and a bpmn file, used with your unit test template for 5.21.0. Note the line with the comment; if it's removed, the test is successful. It works with version 5.17.0 but fails after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would be very grateful for advice on how to poke such a stuck process to continue. I don't mind running a few queries and the like, for example to delete the floating rows in &lt;/SPAN&gt;&lt;CODE&gt;ACT_RU_EXECUTION&lt;/CODE&gt;&lt;SPAN&gt;, and adding a hook in our application for &lt;/SPAN&gt;&lt;CODE&gt;RuntimeService.signal()&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TestMulti.java:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;package org.activiti;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import java.util.*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.runtime.ProcessInstance;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.task.Task;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.test.ActivitiRule;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.test.Deployment;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.junit.Rule;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.junit.Test;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import static org.junit.Assert.*;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class TestMulti {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String PROCESS_KEY = "test_multi";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String TASK_KEY = "multi";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String USER_ID = "testuser";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final String VAR_USERS = "multi_users";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Rule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ActivitiRule activitiRule = new ActivitiRule();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Deployment(resources = {"org/activiti/test/test_multi.bpmn"})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void test() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; vars = new HashMap&amp;lt;&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.put(VAR_USERS, Arrays.asList(USER_ID));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance instance = activitiRule.getRuntimeService().startProcessInstanceByKey(PROCESS_KEY, vars);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertNotNull(instance);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Task task = activitiRule.getTaskService().createTaskQuery().singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertEquals(TASK_KEY, task.getTaskDefinitionKey());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vars.put(VAR_USERS, new ArrayList&amp;lt;&amp;gt;()); // &amp;lt;– Problem here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; activitiRule.getTaskService().complete(task.getId(), vars);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;ProcessInstance&amp;gt; instances = activitiRule.getRuntimeService().createProcessInstanceQuery().list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertEquals(0, instances.size());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;test_multi.bpmn:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;process id="test_multi" name="Test Multi" isExecutable="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="start" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="end" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="multi" name="Multi"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="multi_users" activiti:elementVariable="assignee"&amp;gt;&amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow1" sourceRef="start" targetRef="multi"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow2" sourceRef="multi" targetRef="end"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;bpmndi:BPMNDiagram id="BPMNDiagram_test_multi"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNPlane bpmnElement="test_multi" id="BPMNPlane_test_multi"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="35.0" width="35.0" x="120.0" y="260.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="35.0" width="35.0" x="550.0" y="260.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="multi" id="BPMNShape_multi"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="55.0" width="105.0" x="300.0" y="250.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="155.0" y="277.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="300.0" y="277.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="405.0" y="277.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="550.0" y="277.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNPlane&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/bpmndi:BPMNDiagram&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/definitions&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:59:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246340#M199470</guid>
      <dc:creator>matej1</dc:creator>
      <dc:date>2016-08-29T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246341#M199471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the following diff against 5.21.0 makes my test work, and keeps all other Activiti tests working too (except &lt;/SPAN&gt;&lt;CODE&gt;ShellTaskTest.testOsDetection&lt;/CODE&gt;&lt;SPAN&gt;, as I'm on OpenBSD at home).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The change make sense to me conceptually, but I'm not familiar enough with the codebase to be sure whether this introduces any new issues. I also haven't done tests with our real processes yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;diff –git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java&lt;BR /&gt;index d6814c0..b1f7188 100644&lt;BR /&gt;— a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java&lt;BR /&gt;+++ b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ParallelMultiInstanceBehavior.java&lt;BR /&gt;@@ -101,14 +101,15 @@ public class ParallelMultiInstanceBehavior extends MultiInstanceActivityBehavior&lt;BR /&gt;&amp;nbsp;&amp;nbsp; public void leave(ActivityExecution execution) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callActivityEndListeners(execution);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; if (resolveNrOfInstances(execution) == 0) {&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; int nrOfInstances = getLoopVariable(execution, NUMBER_OF_INSTANCES);&lt;BR /&gt;+&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; if (nrOfInstances == 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Empty collection, just leave.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.leave(execution);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;+&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int loopCounter = getLoopVariable(execution, getCollectionElementIndexVariable());&lt;BR /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; int nrOfInstances = getLoopVariable(execution, NUMBER_OF_INSTANCES);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int nrOfCompletedInstances = getLoopVariable(execution, NUMBER_OF_COMPLETED_INSTANCES) + 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int nrOfActiveInstances = getLoopVariable(execution, NUMBER_OF_ACTIVE_INSTANCES) - 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 22:19:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246341#M199471</guid>
      <dc:creator>matej1</dc:creator>
      <dc:date>2016-08-31T22:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246342#M199472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if I understand the fix: what you're doing here is not inspecting the collection, but looking at the loop variable. How would that solve the problem in a generic sense where the collections grows and shrinks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, the parallel multi instance inspects the collection once, and creates instances when the execution arrives in it (as per the BPMN spec). Changing the collection leading to instances being killed sounds to me more like a bug before that got fixed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 18:41:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246342#M199472</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-09-01T18:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246343#M199473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I understand the spec correctly (section 13.2.7, paragraph 3), the collection should only be evaluated once, but calling &lt;/SPAN&gt;&lt;CODE&gt;resolveNrOfInstances()&lt;/CODE&gt;&lt;SPAN&gt; evaluates the collection again, after it has already been evaluated at creation time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created the diff with the assumption that if reevaluating the collection is illegal, its original values should be used. In this case, its original length is &lt;/SPAN&gt;&lt;CODE&gt;nrOfInstances&lt;/CODE&gt;&lt;SPAN&gt;. Changing the collection while activities are executing should not affect anything, as all needed executions should have been created up front.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I've also opened an issue on your JIRA as ACT-4212, but I'm not sure where the proper place is for this thread to continue. Your JIRA is really shiny though, we're still stuck on an older, duller version at work. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 19:55:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246343#M199473</guid>
      <dc:creator>matej1</dc:creator>
      <dc:date>2016-09-01T19:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246344#M199474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I gave this some thought (and discussed it with Tijs) and I believe you are right. Applied your fix here: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/a813e93531a4ca491ef759114d0ef6d5831a6e37" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commit/a813e93531a4ca491ef759114d0ef6d5831a6e37&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:27:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246344#M199474</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-09-02T14:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: A process did not continue from one subprocess to another</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246345#M199475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! Can't wait enough on 5.22 now. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 18:20:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-process-did-not-continue-from-one-subprocess-to-another/m-p/246345#M199475</guid>
      <dc:creator>matej1</dc:creator>
      <dc:date>2016-09-02T18:20:51Z</dc:date>
    </item>
  </channel>
</rss>

