<?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: Can't get historicTaskInstance By unfinished filter in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-t-get-historictaskinstance-by-unfinished-filter/m-p/208729#M161859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks~ it's clear now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 01:44:23 GMT</pubDate>
    <dc:creator>smartxiaofish</dc:creator>
    <dc:date>2015-06-23T01:44:23Z</dc:date>
    <item>
      <title>Can't get historicTaskInstance By unfinished filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-get-historictaskinstance-by-unfinished-filter/m-p/208727#M161857</link>
      <description>Hi~ i have some tasks completed and deleted before completed.and i tried&amp;nbsp; historySrv.createHistoricTaskInstanceQuery().finshed() and unfinished().here is the test code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Task task = taskSrv.newTask();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;task.setName("test execution");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;task.setOwner(user1.getId());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;task.setAssignee(us</description>
      <pubDate>Fri, 19 Jun 2015 08:57:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-get-historictaskinstance-by-unfinished-filter/m-p/208727#M161857</guid>
      <dc:creator>smartxiaofish</dc:creator>
      <dc:date>2015-06-19T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get historicTaskInstance By unfinished filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-get-historictaskinstance-by-unfinished-filter/m-p/208728#M161858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No finished doesn't mean completed. A finished task is a task that is no longer active, either has been completed or deleted. Finished tasks mostly have delete reason set to either 'completed' or 'deleted' (or whatever delete reason that was specified when deleting the task).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it's not possible to delete then complete a task, since both result to task being inactive (finished), therefore can not be modified and will not be returned when using HistoricTaskInstanceQuery.unfinished()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get tasks that were deleted with deleteReason set to 'ownerDelete', use the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[java]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// check finished tasks that were deleted by owner&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;HistoricTaskInstance&amp;gt; hisTaskListByOwner = historySrv.createHistoricTaskInstanceQuery().taskOwner(user1.getId())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.finished().taskDeleteReason("ownerDelete").list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;assertEquals(1, hisTaskListByOwner.size()); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;assertEquals("ownerDelete", hisTaskListByOwner.get(0).getDeleteReason());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[/java]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2015 22:21:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-get-historictaskinstance-by-unfinished-filter/m-p/208728#M161858</guid>
      <dc:creator>balsarori</dc:creator>
      <dc:date>2015-06-20T22:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get historicTaskInstance By unfinished filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-t-get-historictaskinstance-by-unfinished-filter/m-p/208729#M161859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks~ it's clear now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 01:44:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-t-get-historictaskinstance-by-unfinished-filter/m-p/208729#M161859</guid>
      <dc:creator>smartxiaofish</dc:creator>
      <dc:date>2015-06-23T01:44:23Z</dc:date>
    </item>
  </channel>
</rss>

