<?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 Activiti task query with variable result limit in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-task-query-with-variable-result-limit/m-p/14259#M6259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am trying to fetch the all open tasks with variables from activiti engine using task query. I am using version 5.19.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in &lt;STRONG&gt;TaskEntityManager.findTasksAndVariablesByQueryCriteria(),&amp;nbsp;&lt;/STRONG&gt;the max result is limited to 20000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I try to fetch result in pages, this will still restrict me to 20k.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way I can fetch task with variable after 20k record without using native sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Dec 2017 08:08:20 GMT</pubDate>
    <dc:creator>vgaur</dc:creator>
    <dc:date>2017-12-10T08:08:20Z</dc:date>
    <item>
      <title>Activiti task query with variable result limit</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-task-query-with-variable-result-limit/m-p/14259#M6259</link>
      <description>Hi Everyone,I am trying to fetch the all open tasks with variables from activiti engine using task query. I am using version 5.19.0.I see in TaskEntityManager.findTasksAndVariablesByQueryCriteria(),&amp;nbsp;the max result is limited to 20000.Even if I try to fetch result in pages, this will still restrict m</description>
      <pubDate>Sun, 10 Dec 2017 08:08:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-task-query-with-variable-result-limit/m-p/14259#M6259</guid>
      <dc:creator>vgaur</dc:creator>
      <dc:date>2017-12-10T08:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti task query with variable result limit</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-task-query-with-variable-result-limit/m-p/14260#M6260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;vgaur_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also encountered the same problem that cannot use sql paging with includeTaskLocalVariables・includeProcessVariables.&lt;BR /&gt;I solved this problem by the following pull request. This was merged in Activiti 5.22.0 version.&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/891" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/891&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With includeTaskLocalVariables・includeProcessVariables false, I divided into two queries.&lt;BR /&gt;1. First query get tasks.&lt;BR /&gt;2. Second query get variables by taskIds().&lt;BR /&gt;TaskService.getVariableInstancesLocalByTaskIds(Set&amp;lt;String&amp;gt; taskIds)&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://www.activiti.org/javadocs/org/activiti/engine/TaskService.html#getVariableInstancesLocalByTaskIds-java.util.Set-" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.activiti.org/javadocs/org/activiti/engine/TaskService.html#getVariableInstancesLocalByTaskIds-java.util.Set-&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 10:40:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-task-query-with-variable-result-limit/m-p/14260#M6260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-10T10:40:25Z</dc:date>
    </item>
  </channel>
</rss>

