<?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: Historic Query on task variable returns empty result in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47348#M26819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to query for some historic tasks with the following query:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;HistoricTaskInstance&amp;gt; tasks = actHistoryService.createHistoricTaskInstanceQuery()&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; .processInstanceId(processId).taskVariableValueEquals("taskType", "specify")&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; .orderByHistoricTaskInstanceEndTime().desc().list();&lt;BR /&gt;&lt;BR /&gt;I enabled sql logging to see the generated sql query and it searches for the task variable in the table ACT_HI_DETAIL:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; ==&amp;gt;&amp;nbsp; Executing: select * from ACT_HI_TASKINST HTI WHERE HTI.PROC_INST_ID_ = ?&lt;BR /&gt;and exists ( select HD.ID_ from ACT_HI_DETAIL HD where HD.TYPE_ = 'VariableUpdat&lt;BR /&gt;e' and HD.NAME_ = ? and HD.TASK_ID_ = HTI.ID_ and HD.REV_ = (select max(HDM.REV_&lt;BR /&gt;) from ACT_HI_DETAIL HDM where HDM.TASK_ID_ = HTI.ID_ and HDM.VAR_TYPE_ = ? and&lt;BR /&gt;HDM.NAME_ = ? and HDM.TYPE_ = 'VariableUpdate') and HD.TIME_ = (select max(HDM.T&lt;BR /&gt;IME_) from ACT_HI_DETAIL HDM where HDM.TASK_ID_ = HTI.ID_ and HDM.VAR_TYPE_ = ?&lt;BR /&gt;and HDM.NAME_ = ? and HDM.TYPE_ = 'VariableUpdate') and HD.VAR_TYPE_ = ? and HD.&lt;BR /&gt;TEXT_ = ? ) order by END_TIME_ desc&lt;BR /&gt;&lt;BR /&gt;However this table is completely empty, so no row is returned.&lt;BR /&gt;&lt;BR /&gt;Is there something special to enable writing historic task variables to the table ACT_HI_DETAIL?&lt;BR /&gt;If this is the case: Are there performance problems to be expected with writing historic task variables or why is this not enabled by default?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Maarten Donders&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;How to enabl sql logging to see the generated sql query in Activity?Which file to config?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 13:26:34 GMT</pubDate>
    <dc:creator>chaoyy</dc:creator>
    <dc:date>2012-06-05T13:26:34Z</dc:date>
    <item>
      <title>Historic Query on task variable returns empty result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47345#M26816</link>
      <description>I am trying to query for some historic tasks with the following query:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;HistoricTaskInstance&amp;gt; tasks = actHistoryService.createHistoricTaskInstanceQuery()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processInstanceId(processId).taskVariableValueEquals("taskType", "specify")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .orderByHistoricTaskInstanceEn</description>
      <pubDate>Wed, 01 Jun 2011 15:58:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47345#M26816</guid>
      <dc:creator>mdond</dc:creator>
      <dc:date>2011-06-01T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Historic Query on task variable returns empty result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47346#M26817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maarten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at the different history levels in the docs.&amp;nbsp; You need 'full' for this afaik…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 21:47:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47346#M26817</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-06-02T21:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Historic Query on task variable returns empty result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47347#M26818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ronald,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot. Exactly what I needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;groetjes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maarten&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 07:55:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47347#M26818</guid>
      <dc:creator>mdond</dc:creator>
      <dc:date>2011-06-03T07:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Historic Query on task variable returns empty result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47348#M26819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to query for some historic tasks with the following query:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;HistoricTaskInstance&amp;gt; tasks = actHistoryService.createHistoricTaskInstanceQuery()&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; .processInstanceId(processId).taskVariableValueEquals("taskType", "specify")&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; .orderByHistoricTaskInstanceEndTime().desc().list();&lt;BR /&gt;&lt;BR /&gt;I enabled sql logging to see the generated sql query and it searches for the task variable in the table ACT_HI_DETAIL:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; ==&amp;gt;&amp;nbsp; Executing: select * from ACT_HI_TASKINST HTI WHERE HTI.PROC_INST_ID_ = ?&lt;BR /&gt;and exists ( select HD.ID_ from ACT_HI_DETAIL HD where HD.TYPE_ = 'VariableUpdat&lt;BR /&gt;e' and HD.NAME_ = ? and HD.TASK_ID_ = HTI.ID_ and HD.REV_ = (select max(HDM.REV_&lt;BR /&gt;) from ACT_HI_DETAIL HDM where HDM.TASK_ID_ = HTI.ID_ and HDM.VAR_TYPE_ = ? and&lt;BR /&gt;HDM.NAME_ = ? and HDM.TYPE_ = 'VariableUpdate') and HD.TIME_ = (select max(HDM.T&lt;BR /&gt;IME_) from ACT_HI_DETAIL HDM where HDM.TASK_ID_ = HTI.ID_ and HDM.VAR_TYPE_ = ?&lt;BR /&gt;and HDM.NAME_ = ? and HDM.TYPE_ = 'VariableUpdate') and HD.VAR_TYPE_ = ? and HD.&lt;BR /&gt;TEXT_ = ? ) order by END_TIME_ desc&lt;BR /&gt;&lt;BR /&gt;However this table is completely empty, so no row is returned.&lt;BR /&gt;&lt;BR /&gt;Is there something special to enable writing historic task variables to the table ACT_HI_DETAIL?&lt;BR /&gt;If this is the case: Are there performance problems to be expected with writing historic task variables or why is this not enabled by default?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Maarten Donders&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;How to enabl sql logging to see the generated sql query in Activity?Which file to config?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 13:26:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47348#M26819</guid>
      <dc:creator>chaoyy</dc:creator>
      <dc:date>2012-06-05T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Historic Query on task variable returns empty result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47349#M26820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is default java.util.Logging. Just add a logging.properties on your classpath. Check the activiti source to find such a file for inspiration.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:05:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/historic-query-on-task-variable-returns-empty-result/m-p/47349#M26820</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-06T14:05:06Z</dc:date>
    </item>
  </channel>
</rss>

