<?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: process instance does not end in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216141#M169271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See In activiti if you are starting the task with parallel gateway it means that each task must complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now how process engine will know about it that whether the parallel processes are complete or not so here you can tell process engine that all task is completed parallely via another parallel gateway (end parallel Gateway).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shagufta Shaikh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Developer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tata Consultancy Services&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.tcs.com" rel="nofollow noopener noreferrer"&gt;http://www.tcs.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2016 07:58:04 GMT</pubDate>
    <dc:creator>shagufta1</dc:creator>
    <dc:date>2016-04-28T07:58:04Z</dc:date>
    <item>
      <title>process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216136#M169266</link>
      <description>Hi,I use Activiti 5.19.Well, perhaps something I missed…I wrote two simple test processes (see attachment), and a bit of java code to play them.The first one :start –&amp;gt; CNV_human1 –&amp;gt; CNV_human11 –&amp;gt; endThe second one :start –&amp;gt; parallel Gateway –&amp;gt; CNV_human1 –&amp;gt; CNV_human11 –&amp;gt; end……</description>
      <pubDate>Wed, 27 Apr 2016 08:55:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216136#M169266</guid>
      <dc:creator>delamotte</dc:creator>
      <dc:date>2016-04-27T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216137#M169267</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;You have not connected your CNV_human2 to any bpmn element. Connect it to an End and try again. It will work. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 09:26:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216137#M169267</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-04-27T09:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216138#M169268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Hari, thanks for your reply, but I don't want to connect CNV_human2 to an end event. That's not the way my process is designed. The doc says that when an end event is reached, the process should end. That's what I expect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I made the test, just for see what happens, and the process doesn't end.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 09:41:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216138#M169268</guid>
      <dc:creator>delamotte</dc:creator>
      <dc:date>2016-04-27T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216139#M169269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you need to again add parallel gateway connect both user task and then end it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shagufta Shaikh&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Developer, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tata Consultancy Services&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.tcs.com" rel="nofollow noopener noreferrer"&gt;http://www.tcs.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 05:57:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216139#M169269</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-04-28T05:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216140#M169270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Shagufta,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. Perhaps that adding gateways would work, but I really would like to understand why this process does not end. This use case seems to be valid, regarding BPMN2 specs, so it should end when one execution reaches an end point. Doesn't it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 07:22:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216140#M169270</guid>
      <dc:creator>delamotte</dc:creator>
      <dc:date>2016-04-28T07:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216141#M169271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See In activiti if you are starting the task with parallel gateway it means that each task must complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now how process engine will know about it that whether the parallel processes are complete or not so here you can tell process engine that all task is completed parallely via another parallel gateway (end parallel Gateway).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shagufta Shaikh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Developer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tata Consultancy Services&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.tcs.com" rel="nofollow noopener noreferrer"&gt;http://www.tcs.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 07:58:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216141#M169271</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-04-28T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216142#M169272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shagufta, I'm perhaps missing something very simple… but I've read the Activiti doc once more, and I don't understand that "if you are starting the task with parallel gateway it means that each task must complete". I understand that a parralel Gateway is just a fork.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, I tried to add &amp;lt;code&amp;gt;&amp;lt;terminateEventDefinition activiti:terminateAll="true"&amp;gt;&amp;lt;/terminateEventDefinition&amp;gt;&amp;lt;/code&amp;gt; to my end node, and then, the process ends normally; but it also ends the caller process, which is not what I want, so I can't use it as a workaround.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 09:12:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216142#M169272</guid>
      <dc:creator>delamotte</dc:creator>
      <dc:date>2016-04-28T09:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216143#M169273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if you are starting the task with parallel gateway it means that each task which you have started with parallel gateway must complete. Till then process will wait for task to be completed. Then only process will go for further steps otherwise process will stuck their only. This is what I want to say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And are you using sub-process for this tasks?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 10:30:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216143#M169273</guid>
      <dc:creator>shagufta1</dc:creator>
      <dc:date>2016-04-28T10:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: process instance does not end</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216144#M169274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shagufta, thank you very much for trying to help me. I think I understood what you want to say, even if my English is not really good…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I tried the following tests :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I deleted the parallelGateway, and simply replaced it by two sequenceFlow comming from start node, and respectively going to humanTask1 and humanTask2. Then, I don't have parallelGateway anymore in my process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result : the process doesn't end (NOK : it should).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I tried to add &amp;lt;code&amp;gt;&amp;lt;terminateEventDefinition activiti:terminateAll="true"&amp;gt;&amp;lt;/terminateEventDefinition&amp;gt;&amp;lt;/code&amp;gt; to the end node. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result : the process ends, and the caller process also ends (OK).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) I tried to add &amp;lt;code&amp;gt;&amp;lt;terminateEventDefinition activiti:terminateAll="false"&amp;gt;&amp;lt;/terminateEventDefinition&amp;gt;&amp;lt;/code&amp;gt; to the end node (terminateAll is false, vs true in the previous test). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result : the process ends (OK), and the caller process also ends ( NOK : it shouldn't).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of that really doesn't make sense to me…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If, by chance, an activiti developper could have a look, and tell me where, in the activiti code, I could debug to see what happens and point what I am doing wrong…&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 12:32:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-does-not-end/m-p/216144#M169274</guid>
      <dc:creator>delamotte</dc:creator>
      <dc:date>2016-04-28T12:32:03Z</dc:date>
    </item>
  </channel>
</rss>

