<?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: Count active process instances (no matter which process definition) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/count-active-process-instances-no-matter-which-process/m-p/138142#M96796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mgryszko,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty new to activiti but I had a similar problem. I solved it by queuing with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;HistoryService historyService = processEngine.getHistoryService();&lt;BR /&gt;List&amp;lt;HistoricProcessInstance&amp;gt; hpiList =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; historyService.createHistoricProcessInstanceQuery().unfinished().list();&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;With this list you should get all the process instances which did not reached the end state yet. I used it to restart all my unfinished jobs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this is correct and helps you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FellowTom &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 11:24:01 GMT</pubDate>
    <dc:creator>fellowtom</dc:creator>
    <dc:date>2013-07-29T11:24:01Z</dc:date>
    <item>
      <title>Count active process instances (no matter which process definition)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/count-active-process-instances-no-matter-which-process/m-p/138141#M96795</link>
      <description>Is it possible to issue a query that will return a count of all process instances that are being executed?I tried with:runtimeService.createExecutionQuery().count()runtimeService.createProcessInstanceQuery().count()‍‍‍‍but I get always 0 as result, even if I know that at least one process is being e</description>
      <pubDate>Fri, 26 Jul 2013 10:52:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/count-active-process-instances-no-matter-which-process/m-p/138141#M96795</guid>
      <dc:creator>mgryszko</dc:creator>
      <dc:date>2013-07-26T10:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count active process instances (no matter which process definition)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/count-active-process-instances-no-matter-which-process/m-p/138142#M96796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mgryszko,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty new to activiti but I had a similar problem. I solved it by queuing with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;HistoryService historyService = processEngine.getHistoryService();&lt;BR /&gt;List&amp;lt;HistoricProcessInstance&amp;gt; hpiList =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; historyService.createHistoricProcessInstanceQuery().unfinished().list();&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;With this list you should get all the process instances which did not reached the end state yet. I used it to restart all my unfinished jobs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this is correct and helps you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FellowTom &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 11:24:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/count-active-process-instances-no-matter-which-process/m-p/138142#M96796</guid>
      <dc:creator>fellowtom</dc:creator>
      <dc:date>2013-07-29T11:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count active process instances (no matter which process definition)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/count-active-process-instances-no-matter-which-process/m-p/138143#M96797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The process instance query should be okay. But of course when the message is still being handled asynchronous the process instance could not be started yet. So you would need to implement a bit of polling logic to see when the process instance has been started. You can use the process instance query for that.&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>Tue, 30 Jul 2013 09:54:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/count-active-process-instances-no-matter-which-process/m-p/138143#M96797</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-07-30T09:54:35Z</dc:date>
    </item>
  </channel>
</rss>

