<?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: ProcessInstance.isEnded() not becoming true when UserTask is in flow in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223753#M176883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm, when I add this trace line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("process count=" + runtimeService.createProcessInstanceQuery().count());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It prints 0, so I assume that the process instance actually ended, but for some reason the isEnded() status didn't get set in the in-memory ProcessInstance for some reason?&amp;nbsp; I guess that's not a problem, just not what I was expecting.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2016 16:01:36 GMT</pubDate>
    <dc:creator>jlilley</dc:creator>
    <dc:date>2016-08-22T16:01:36Z</dc:date>
    <item>
      <title>ProcessInstance.isEnded() not becoming true when UserTask is in flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223752#M176882</link>
      <description>I am testing integration of the Activiti engine in a fairly direct fashion (no Tomcat or other container, no spring).&amp;nbsp; So far, so good!&amp;nbsp; I am able to build a custom ServiceTask that calls my JavaDelegate execute() method, access and set variables, and so on.&amp;nbsp; I am also able to call complete() on a U</description>
      <pubDate>Mon, 22 Aug 2016 14:52:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223752#M176882</guid>
      <dc:creator>jlilley</dc:creator>
      <dc:date>2016-08-22T14:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.isEnded() not becoming true when UserTask is in flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223753#M176883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm, when I add this trace line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("process count=" + runtimeService.createProcessInstanceQuery().count());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It prints 0, so I assume that the process instance actually ended, but for some reason the isEnded() status didn't get set in the in-memory ProcessInstance for some reason?&amp;nbsp; I guess that's not a problem, just not what I was expecting.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 16:01:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223753#M176883</guid>
      <dc:creator>jlilley</dc:creator>
      <dc:date>2016-08-22T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.isEnded() not becoming true when UserTask is in flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223754#M176884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you update process instance?&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, 23 Aug 2016 09:11:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223754#M176884</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-08-23T09:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.isEnded() not becoming true when UserTask is in flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223755#M176885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know what that means.&amp;nbsp; ProcessInstance doesn't seem to have an update() or refresh() method…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance2 = runtimeService.createProcessInstanceQuery().processInstanceBusinessKey(processInstance.getBusinessKey()).list().get(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I get an NPE.&amp;nbsp; I tried this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance2 = runtimeService.createProcessInstanceQuery().processInstanceId(processInstance.getProcessInstanceId()).list().get(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but I get an empty list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that once the process instance is finished, its record goes away too, and there is nothing to refresh.&amp;nbsp; Which kind of makes sense…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;john&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 13:20:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223755#M176885</guid>
      <dc:creator>jlilley</dc:creator>
      <dc:date>2016-08-23T13:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.isEnded() not becoming true when UserTask is in flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223756#M176886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed, if process ends, it's not in runtimeService anymore, you can find it in historyService if you want, but that's another story.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:53:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-isended-not-becoming-true-when-usertask-is-in/m-p/223756#M176886</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2016-08-23T15:53:43Z</dc:date>
    </item>
  </channel>
</rss>

