<?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 ExecutionQuery and ProcessInstanceQuery doesnt return result in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/executionquery-and-processinstancequery-doesnt-return-result/m-p/78421#M52025</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;Here is my simple workflow,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;start —&amp;gt; A —&amp;gt; B —-&amp;gt; C —-&amp;gt; end&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A,B,C are ServiceTasks with JavaDelegate(ADelegate, BDelegate, CDelegate). Each delegate have 2 second sleep( Thread.sleep(2000) ) call to keep the workflow runnig for 6 seconds. From my JUnit program, i create a thread, which i instantiate this workflow with business key("myKey1"). After this, from my JUnit, I do query for process instance for "myKey1" using runtmieService.createExecutionQuery as well as runtmieService.createProcessInstanceQuery. but both of them returns me null process instance list. At the time, i execute these queries, my javaDelegate print statement tells me that i am at either task A or at task B. So, My workflow is still alive. Even If i query using actual processInstanceId instead businessKey, It does not return me any result. I do have singleton runtimeService and ProcessEngine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add receive task after A, B and C and if i execute same queries when waiting after A, it gives me correct results. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering, why it would not return me any result in Case1? I am not sure if I am doing something that is not inclined with Activiti threading fundamentals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yatish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 21:29:34 GMT</pubDate>
    <dc:creator>yatish</dc:creator>
    <dc:date>2011-08-31T21:29:34Z</dc:date>
    <item>
      <title>ExecutionQuery and ProcessInstanceQuery doesnt return result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/executionquery-and-processinstancequery-doesnt-return-result/m-p/78421#M52025</link>
      <description>Hi,Here is my simple workflow,start —&amp;gt; A —&amp;gt; B —-&amp;gt; C —-&amp;gt; endCase1:A,B,C are ServiceTasks with JavaDelegate(ADelegate, BDelegate, CDelegate). Each delegate have 2 second sleep( Thread.sleep(2000) ) call to keep the workflow runnig for 6 seconds. From my JUnit program, i create a thread, wh</description>
      <pubDate>Wed, 31 Aug 2011 21:29:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/executionquery-and-processinstancequery-doesnt-return-result/m-p/78421#M52025</guid>
      <dc:creator>yatish</dc:creator>
      <dc:date>2011-08-31T21:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: ExecutionQuery and ProcessInstanceQuery doesnt return result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/executionquery-and-processinstancequery-doesnt-return-result/m-p/78422#M52026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As long as the process is actually 'flowing', the process-instance and all related models aren't comitted to the database. This only happens when a wait-state is reached. This is the way activiti works (exception will cause rollback to last known state)…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 07:22:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/executionquery-and-processinstancequery-doesnt-return-result/m-p/78422#M52026</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-09-01T07:22:49Z</dc:date>
    </item>
  </channel>
</rss>

