<?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 Query returning completed or cancelled workflows (MS SQL) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227988#M181118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I do mean suspended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To counter your point about all instances with that variable getting returned… We are not seeing all instances getting returned. As in, not all suspended (completed or cancelled) workflows are returned but just a few of them are getting returned along with the active workflows. Is this possibly an issue with MS SQL? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, to constrain my query, is adding &amp;lt;java&amp;gt;.active()&amp;lt;/java&amp;gt; appropriate?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 18:12:33 GMT</pubDate>
    <dc:creator>cchen</dc:creator>
    <dc:date>2016-05-18T18:12:33Z</dc:date>
    <item>
      <title>Process Instance Query returning completed or cancelled workflows (MS SQL)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227986#M181116</link>
      <description>I am trying to use a ProcessInstanceQuery to return all active workflows initiated by bpm_initiator. However, a number of inactive workflows are getting returned. When these inactive workflows are returned, exceptions are thrown, since bpm_package has been deleted. When querying ACT_RU_VARIABLE for</description>
      <pubDate>Mon, 16 May 2016 18:29:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227986#M181116</guid>
      <dc:creator>cchen</dc:creator>
      <dc:date>2016-05-16T18:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance Query returning completed or cancelled workflows (MS SQL)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227987#M181117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what does 'inactive' mean for you? It's not a concept from Activiti. Do you mean suspended?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; getRuntimeService().createProcessInstanceQuery().variableValueEquals("bpm_initiator", userLoginName)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This returns all instances wth that variable, irregardless of the state, you'd need to add more constraints to the query to filter more narrowly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 16:41:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227987#M181117</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-18T16:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance Query returning completed or cancelled workflows (MS SQL)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227988#M181118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I do mean suspended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To counter your point about all instances with that variable getting returned… We are not seeing all instances getting returned. As in, not all suspended (completed or cancelled) workflows are returned but just a few of them are getting returned along with the active workflows. Is this possibly an issue with MS SQL? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, to constrain my query, is adding &amp;lt;java&amp;gt;.active()&amp;lt;/java&amp;gt; appropriate?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 18:12:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227988#M181118</guid>
      <dc:creator>cchen</dc:creator>
      <dc:date>2016-05-18T18:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Process Instance Query returning completed or cancelled workflows (MS SQL)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227989#M181119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, as the javadocs says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * Only select process instances which are active, which means that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * neither the process instance nor the corresponding process definition &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * are suspended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessInstanceQuery active();&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;About your other problem: how many are returned. There is a limit on the total amount returned, i believe. But it should be a large value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 13:15:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-instance-query-returning-completed-or-cancelled/m-p/227989#M181119</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-26T13:15:37Z</dc:date>
    </item>
  </channel>
</rss>

