<?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: Sorting tasks by task variable values in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237902#M191032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Martin!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; – &amp;gt;do not store all variables in history tables (implement your own listener and listen only to relevant changes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Does it mean,&amp;nbsp; we need to turn off history (history level = none) and write to this tables on our own ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where can I read about it ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ilya.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 12:31:12 GMT</pubDate>
    <dc:creator>ilyagalahov</dc:creator>
    <dc:date>2016-04-04T12:31:12Z</dc:date>
    <item>
      <title>Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237897#M191027</link>
      <description>Hello!Is it possible to sort TaskQuery.list() results by task variable values or process variable values ?We ought to implement it via custom ibatis mappings. Is it possible via core functionality ?Regards, Ilya.</description>
      <pubDate>Wed, 30 Mar 2016 13:15:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237897#M191027</guid>
      <dc:creator>ilyagalahov</dc:creator>
      <dc:date>2016-03-30T13:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237898#M191028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ilya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TaskQuery does not support sort by variable value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can implement your own native queries or extend ibatis mappings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 08:26:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237898#M191028</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-31T08:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237899#M191029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should we expect this feature in next versions of engine ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't you have any mapping examples with sorting by task vars ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ilya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 08:29:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237899#M191029</guid>
      <dc:creator>ilyagalahov</dc:creator>
      <dc:date>2016-03-31T08:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237900#M191030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using activiti with alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To show tasks in client's ui grids with sorting and filtering we store alfresco document properties in process variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To allow sorting and filtering in ui grids, we implemented custom ibatis mappings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the problem is in that we should store document properties in any process and subprocess, and tables ACT_RU_VARIABLE and ACT_HI_VARINST become very big. With every BP action created about 300 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we tried to load document properties from alfresco node itself, it was very slowly &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We tried to store variables in one, "main" process by document, but with this approach mapping became very complex and unmaintainable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas will be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ilya.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 08:42:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237900#M191030</guid>
      <dc:creator>ilyagalahov</dc:creator>
      <dc:date>2016-03-31T08:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237901#M191031</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;SPAN&gt;Ideas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;do not store all variables in history tables (implement your own listener and listen only to relevant changes),&lt;/LI&gt;&lt;LI&gt;optimize DB,&lt;/LI&gt;&lt;LI&gt;not store document variables in the process&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 08:28:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237901#M191031</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-04T08:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237902#M191032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Martin!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; – &amp;gt;do not store all variables in history tables (implement your own listener and listen only to relevant changes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Does it mean,&amp;nbsp; we need to turn off history (history level = none) and write to this tables on our own ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where can I read about it ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ilya.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:31:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237902#M191032</guid>
      <dc:creator>ilyagalahov</dc:creator>
      <dc:date>2016-04-04T12:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237903#M191033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Storing that many variables for each process instance is not a good idea, it'll lead to some poor performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd guess optimizing the db + query is the first thing to try. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turning off history and listen to events, as Martin suggests, is surely an option, but a heavy one. I would first try to optimize the process, try to store way less data and try to optimize the query (indices maybe?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:44:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237903#M191033</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-04T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237904#M191034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are trying to do the same thing: show tasks in client's ui grids with sorting and filtering.&amp;nbsp; If you don't suggest that we store the values for the grid in user variables, where should we put them?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 17:46:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237904#M191034</guid>
      <dc:creator>cacaponkayaker</dc:creator>
      <dc:date>2016-05-19T17:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting tasks by task variable values</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237905#M191035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For historic variables we implemented CustomHistoryManager which extends HistoryManager and then mocked unnecessary methods. You could override History manager in "activitiProcessEngineConfiguration" bean in "customSessionFactories" property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So now we can store only necessary tasks and variables in historic tables. We do not store information about processes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 19:24:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-tasks-by-task-variable-values/m-p/237905#M191035</guid>
      <dc:creator>ilyagalahov</dc:creator>
      <dc:date>2016-05-19T19:24:14Z</dc:date>
    </item>
  </channel>
</rss>

