<?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 Fetching tasks based on the task start date in REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/fetching-tasks-based-on-the-task-start-date-in-rest-api/m-p/143457#M38117</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been trying to filter the tasks based on property value using WorkflowTaskQuery where I'm implementing setProcessCustProps() method in which I'm passing a list of property-values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to fetch some of the properties but when tried with bpm:startDate, bpm:completionDate, it wasn't fetching.&amp;nbsp;&lt;BR /&gt;I tried providing the date in ISO8601 format (bpm:startDate/&lt;SPAN&gt;2019-07-22T16:49:59.000Z)&amp;nbsp;&lt;/SPAN&gt;as I'm using task-instances REST API.&lt;/P&gt;&lt;P&gt;Now, I have a requirement to filter the tasks based on date provided which is equal or greater than the task start date before fetching the tasks. I tried searching but didn't find any solution of filtering using WorkflowTaskQuery.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to fetch task details by applying task start date filter using WorkflowTaskQuery and should the value provided to the parameter (Ex: bpm:startDate) be in ISO8601 format?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please do help with the solution.&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 07:50:29 GMT</pubDate>
    <dc:creator>Tabu</dc:creator>
    <dc:date>2021-07-05T07:50:29Z</dc:date>
    <item>
      <title>Fetching tasks based on the task start date in REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetching-tasks-based-on-the-task-start-date-in-rest-api/m-p/143457#M38117</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been trying to filter the tasks based on property value using WorkflowTaskQuery where I'm implementing setProcessCustProps() method in which I'm passing a list of property-values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to fetch some of the properties but when tried with bpm:startDate, bpm:completionDate, it wasn't fetching.&amp;nbsp;&lt;BR /&gt;I tried providing the date in ISO8601 format (bpm:startDate/&lt;SPAN&gt;2019-07-22T16:49:59.000Z)&amp;nbsp;&lt;/SPAN&gt;as I'm using task-instances REST API.&lt;/P&gt;&lt;P&gt;Now, I have a requirement to filter the tasks based on date provided which is equal or greater than the task start date before fetching the tasks. I tried searching but didn't find any solution of filtering using WorkflowTaskQuery.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to fetch task details by applying task start date filter using WorkflowTaskQuery and should the value provided to the parameter (Ex: bpm:startDate) be in ISO8601 format?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please do help with the solution.&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 07:50:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetching-tasks-based-on-the-task-start-date-in-rest-api/m-p/143457#M38117</guid>
      <dc:creator>Tabu</dc:creator>
      <dc:date>2021-07-05T07:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching tasks based on the task start date in REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetching-tasks-based-on-the-task-start-date-in-rest-api/m-p/143458#M38118</link>
      <description>&lt;P&gt;Take reference of this Java file.&lt;/P&gt;&lt;P&gt;Here they have provided how to gilter task.&lt;/P&gt;&lt;P&gt;TaskInstancesGet.java&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:30:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetching-tasks-based-on-the-task-start-date-in-rest-api/m-p/143458#M38118</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-07-09T08:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching tasks based on the task start date in REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetching-tasks-based-on-the-task-start-date-in-rest-api/m-p/143459#M38119</link>
      <description>&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;I am taking TaskInstancesGet.java class as a reference.&lt;/P&gt;&lt;P&gt;WorkflowTaskQuery taskQuery = new WorkflowTaskQuery();&lt;BR /&gt;taskQuery.setActive(null);&lt;BR /&gt;taskQuery.setWorkflowDefinitionName(workflowName);&lt;BR /&gt;taskQuery.setTaskState(state);&lt;/P&gt;&lt;P&gt;propertyFilter.put(propertyQName, propValue);&lt;BR /&gt;taskQuery.setProcessCustomProps(propertyFilter);&lt;BR /&gt;taskQuery.setOrderBy(new OrderBy[]{OrderBy.TaskDue_Asc});&lt;/P&gt;&lt;P&gt;This is the code of WorkflowTaskQuery where in properties are filtered in setProcessCustomProps().&lt;/P&gt;&lt;P&gt;In this code it basically matches with the values &amp;amp; names of the properties then fetches the task details. But when i tried filtering by bpm:startDate the response is empty. My requirement is to fetch all the tasks based on the date provided which is equal or greater than the task start date (bpm:startDate).&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2021 04:52:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetching-tasks-based-on-the-task-start-date-in-rest-api/m-p/143459#M38119</guid>
      <dc:creator>Tabu</dc:creator>
      <dc:date>2021-07-10T04:52:45Z</dc:date>
    </item>
  </channel>
</rss>

