<?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 5.11: wrong historicDetailResultMap_postgres in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-wrong-historicdetailresultmap-postgres/m-p/122603#M86334</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;After upgrade to Activiti 5.11 the query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;HistoricDetail&amp;gt; hds = historyService.createHistoricDetailQuery().processInstanceId(processInstanceId).variableUpdates().orderByTime().desc().list();&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;return HistoricDetail that not implements HistoricVariableUpdate , then is impossible access variable informations (via cast).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use POSTGRES as DB and I think only this db is affected, indeed after some investigation I found a problem in HistoricDetail.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "createHistoricDetailQuery" use "historicDetailResultMap" that in case of POSTGRES is remapped to "historicDetailResultMap_postgres". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In "historicDetailResultMap_postgres" definition there is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;discriminator javaType="string" column="TYPE_"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;case value="VariableUpdate" resultMap="historicVariableUpdateResultMap_postgres"/&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;case value="FormProperty" resultMap="historicFormPropertyResultMap"/&amp;gt; &lt;BR /&gt;&amp;lt;/discriminator&amp;gt;&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;but "historicVariableUpdateResultMap_postgres" is not defined, then the MyBatis fails to map data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My workaround is change "historicVariableUpdateResultMap_postgres" in "historicVariableUpdateResultMap" that is defined after in HistoricDetail.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;discriminator javaType="string" column="TYPE_"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;case value="VariableUpdate" resultMap="historicVariableUpdateResultMap"/&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;case value="FormProperty" resultMap="historicFormPropertyResultMap"/&amp;gt; &lt;BR /&gt;&amp;lt;/discriminator&amp;gt;&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;Now query works and is possible to cast returned HistoricDetail to HistoricVariableUpdate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you apply patch on next release please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2012 07:38:22 GMT</pubDate>
    <dc:creator>xandros</dc:creator>
    <dc:date>2012-12-31T07:38:22Z</dc:date>
    <item>
      <title>Activiti 5.11: wrong historicDetailResultMap_postgres</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-wrong-historicdetailresultmap-postgres/m-p/122603#M86334</link>
      <description>Hi,After upgrade to Activiti 5.11 the query:List&amp;lt;HistoricDetail&amp;gt; hds = historyService.createHistoricDetailQuery().processInstanceId(processInstanceId).variableUpdates().orderByTime().desc().list();‍‍‍return HistoricDetail that not implements HistoricVariableUpdate , then is impossible access v</description>
      <pubDate>Mon, 31 Dec 2012 07:38:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-wrong-historicdetailresultmap-postgres/m-p/122603#M86334</guid>
      <dc:creator>xandros</dc:creator>
      <dc:date>2012-12-31T07:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.11: wrong historicDetailResultMap_postgres</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-wrong-historicdetailresultmap-postgres/m-p/122604#M86335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for reporting this. I stumbled upon this issue today an will get it fixed asap…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1512" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-1512&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:39:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-wrong-historicdetailresultmap-postgres/m-p/122604#M86335</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-03T09:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.11: wrong historicDetailResultMap_postgres</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-wrong-historicdetailresultmap-postgres/m-p/122605#M86336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2013 21:44:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-11-wrong-historicdetailresultmap-postgres/m-p/122605#M86336</guid>
      <dc:creator>xandros</dc:creator>
      <dc:date>2013-01-06T21:44:06Z</dc:date>
    </item>
  </channel>
</rss>

