<?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 all tasks for content (solved and described) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118039#M83249</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;Thanks for your information. Unfortunately this does not give me the output I was hoping for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The completed tasks/workflows still disappear from my task list. What I can see during debugging in Eclipse, is that the code does find the completed workflow (with active==false) but when the the following section of code is executed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;WorkflowTaskQuery query = new WorkflowTaskQuery();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;query.setTaskState(null);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;query.setProcessId(wi.id);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;WorkflowTask&amp;gt; tasks = this.workflowService.queryTasks(query);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;it does not find the tasks that are part of the completed workflow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of this I was wondering if either Iam using the wrong &lt;/SPAN&gt;&lt;STRONG&gt;processId&lt;/STRONG&gt;&lt;SPAN&gt; or that the query behind this code doesn't work like i think it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;My questions is: If I know the WorkflowInstance, can i get the completed tasks of it with my code using the workflowinstance.id as processid???&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.wowww.nl" rel="nofollow noopener noreferrer"&gt;http://www.wowww.nl&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 05:40:40 GMT</pubDate>
    <dc:creator>kwantm</dc:creator>
    <dc:date>2007-09-11T05:40:40Z</dc:date>
    <item>
      <title>Retrieving all tasks for content (solved and described)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118037#M83247</link>
      <description>hi,I am trying to code a custom method in the WorkflowBean to retrieve all tasts for content.I have read the following post http://forums.alfresco.com/viewtopic.php?p=25854&amp;amp;sid=0bd633e1bc22551db79be683592522f6&amp;nbsp; on this, but I have a question on this.what does the processId mean. is this the Work</description>
      <pubDate>Mon, 10 Sep 2007 11:53:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118037#M83247</guid>
      <dc:creator>kwantm</dc:creator>
      <dc:date>2007-09-10T11:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all tasks for content (solved and described)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118038#M83248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By default, a task state of COMPLETED is queried.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to search ignoring task state (i.e. complete and in progress), then use…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;query.setTaskState(null);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 12:50:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118038#M83248</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-10T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all tasks for content (solved and described)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118039#M83249</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;Thanks for your information. Unfortunately this does not give me the output I was hoping for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The completed tasks/workflows still disappear from my task list. What I can see during debugging in Eclipse, is that the code does find the completed workflow (with active==false) but when the the following section of code is executed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;WorkflowTaskQuery query = new WorkflowTaskQuery();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;query.setTaskState(null);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;query.setProcessId(wi.id);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;WorkflowTask&amp;gt; tasks = this.workflowService.queryTasks(query);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;it does not find the tasks that are part of the completed workflow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of this I was wondering if either Iam using the wrong &lt;/SPAN&gt;&lt;STRONG&gt;processId&lt;/STRONG&gt;&lt;SPAN&gt; or that the query behind this code doesn't work like i think it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;My questions is: If I know the WorkflowInstance, can i get the completed tasks of it with my code using the workflowinstance.id as processid???&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.wowww.nl" rel="nofollow noopener noreferrer"&gt;http://www.wowww.nl&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 05:40:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118039#M83249</guid>
      <dc:creator>kwantm</dc:creator>
      <dc:date>2007-09-11T05:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all tasks for content (solved and described)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118040#M83250</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 have solved my isssue. I compared my code against the task history in the task-manage page and came to the conclusion that I was missing the following piece of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;query.setActive(wi.active);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When this is added, the view presents me with the completed tasks as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.wowww.nl" rel="nofollow noopener noreferrer"&gt;http://www.wowww.nl&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 10:17:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118040#M83250</guid>
      <dc:creator>kwantm</dc:creator>
      <dc:date>2007-09-11T10:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all tasks for content (solved and described)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118041#M83251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written a small article on this functionality. Anyone who whats this, can get the info here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.wowww.nl/wordpress/?p=69" rel="nofollow noopener noreferrer"&gt;http://www.wowww.nl/wordpress/?p=69&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.wowww.nl" rel="nofollow noopener noreferrer"&gt;http://www.wowww.nl&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:22:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118041#M83251</guid>
      <dc:creator>kwantm</dc:creator>
      <dc:date>2007-09-14T14:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all tasks for content (solved and described)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118042#M83252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 15:20:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118042#M83252</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-14T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all tasks for content (solved and described)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118043#M83253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Marc!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 05:20:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-all-tasks-for-content-solved-and-described/m-p/118043#M83253</guid>
      <dc:creator>anon26949</dc:creator>
      <dc:date>2018-06-26T05:20:23Z</dc:date>
    </item>
  </channel>
</rss>

