<?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: Retrieving completion status for terminated processes in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40716#M17081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood, likely you will need to make a number of calls and merge the results to get the information you want.&lt;/P&gt;&lt;P&gt;Alternatively you could make a native SQL call (or a custom iBatis mapping) using the managementService to retrieve the status details from the jistory tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 16:59:37 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-05-30T16:59:37Z</dc:date>
    <item>
      <title>Retrieving completion status for terminated processes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40712#M17077</link>
      <description>I looked at the Javadocs, and searched the forum, but did not find an answer.Is there an API to get the process completion state (success, error, etc,) for processes that are completed and are in the history?</description>
      <pubDate>Thu, 25 May 2017 18:03:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40712#M17077</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-05-25T18:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving completion status for terminated processes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40713#M17078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;You can retrieve instances that &amp;nbsp;have a job execution error as well as a delete reason, but not by state as far as I know.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 21:33:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40713#M17078</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-26T21:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving completion status for terminated processes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40714#M17079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to know the process completion state(the end activity id), you can use HistoricProcessInstance.getEndActivityId().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;・HistoricProcessInstance&lt;BR /&gt;&lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/history/HistoricProcessInstance.html" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/javadocs/org/activiti/engine/history/HistoricProcessInstance.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get HistoricProcessInstance, you neet to use HistoricProcessInstanceQuery.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;・HistoricProcessInstanceQuery&lt;BR /&gt;&lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/history/HistoricProcessInstanceQuery.html" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/javadocs/org/activiti/engine/history/HistoricProcessInstanceQuery.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 May 2017 07:37:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40714#M17079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-27T07:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving completion status for terminated processes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40715#M17080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A __default_attr="151954" __jive_macro_name="user" _jive_internal="true" data-id="151954" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/gdharley" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;A __default_attr="126388" __jive_macro_name="user" _jive_internal="true" data-id="126388" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/daisuke-yoshimoto" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌ But what I want to do is find out the reason a process instance ended--is it because it completed, or because an error occurred, or because it got &amp;nbsp;a signal/event etc. I did not find anything in the Activiti API to retrieve that information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 16:52:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40715#M17080</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-05-30T16:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving completion status for terminated processes</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40716#M17081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood, likely you will need to make a number of calls and merge the results to get the information you want.&lt;/P&gt;&lt;P&gt;Alternatively you could make a native SQL call (or a custom iBatis mapping) using the managementService to retrieve the status details from the jistory tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 16:59:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-completion-status-for-terminated-processes/m-p/40716#M17081</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-30T16:59:37Z</dc:date>
    </item>
  </channel>
</rss>

