<?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 How to retrieve active process instances in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-active-process-instances/m-p/101620#M70582</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;I was wondering how I could get a list of all processInstances that are alive on a runtime service. With alive I mean all instances, including instances in wait state and currently processing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I understand, as soon as a processInstance hits a wait state, e.g. user task, the entire process isntance is persisted into a database able?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"At such a wait state, the current state of the process instance is stored in the database."&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/index.html#bpmnFirstExamplStartProcess" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#bpmnFirstExamplStartProcess&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that the ACT_HI_PROCINST table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, then there are some processInstances in a database table, which I could query, and some are not (only alive somewhere in runtime environment). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be your approach to retrieve those instances?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, how can I force a processInstance to persist itself upon process start? Basically when it enters the start node?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not only for this task, but also in case the process engine crashs and I have to restore all instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers and kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tobi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2012 22:21:09 GMT</pubDate>
    <dc:creator>tobiasw_</dc:creator>
    <dc:date>2012-03-12T22:21:09Z</dc:date>
    <item>
      <title>How to retrieve active process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-active-process-instances/m-p/101620#M70582</link>
      <description>Hi,I was wondering how I could get a list of all processInstances that are alive on a runtime service. With alive I mean all instances, including instances in wait state and currently processing something.As I understand, as soon as a processInstance hits a wait state, e.g. user task, the entire pro</description>
      <pubDate>Mon, 12 Mar 2012 22:21:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-active-process-instances/m-p/101620#M70582</guid>
      <dc:creator>tobiasw_</dc:creator>
      <dc:date>2012-03-12T22:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve active process instances</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-active-process-instances/m-p/101621#M70583</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;Yes if you hit a wait state the state is persisted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want every process instance to persist itself immediately it's a good idea to add an async task right after the start event. This can even be a dummy manual task.&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, 13 Mar 2012 12:32:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-retrieve-active-process-instances/m-p/101621#M70583</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-03-13T12:32:46Z</dc:date>
    </item>
  </channel>
</rss>

