<?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 Getting the latest running process instance in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/getting-the-latest-running-process-instance/m-p/20914#M9204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;Is it possible to get the latest running process in Activiti with createProcessInstanceQuery ?&lt;/P&gt;&lt;P&gt;runtimeService.createProcessInstanceQuery().processDefinitionKey('myKey').active().singleResult().getProcessInstanceId() I want to get the process instance ID of that definition but only the latest running process.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 15:59:49 GMT</pubDate>
    <dc:creator>bhchemss</dc:creator>
    <dc:date>2017-04-28T15:59:49Z</dc:date>
    <item>
      <title>Getting the latest running process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-the-latest-running-process-instance/m-p/20914#M9204</link>
      <description>Hello everyone,Is it possible to get the latest running process in Activiti with createProcessInstanceQuery ?runtimeService.createProcessInstanceQuery().processDefinitionKey('myKey').active().singleResult().getProcessInstanceId() I want to get the process instance ID of that definition but only the</description>
      <pubDate>Fri, 28 Apr 2017 15:59:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-the-latest-running-process-instance/m-p/20914#M9204</guid>
      <dc:creator>bhchemss</dc:creator>
      <dc:date>2017-04-28T15:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest running process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-the-latest-running-process-instance/m-p/20915#M9205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;runtimeService may not give what you want.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;The following should work.&lt;/P&gt;&lt;P class=""&gt;historyService().createHistoricProcessInstanceQuery().processDefinitionKey(&lt;SPAN class=""&gt;"myKey"&lt;/SPAN&gt;).unfinished().orderByProcessInstanceStartTime().desc().singleResult(&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 21:12:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-the-latest-running-process-instance/m-p/20915#M9205</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-04-28T21:12:03Z</dc:date>
    </item>
  </channel>
</rss>

