<?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: Values missing in ACT_HI_VARINST table in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192966#M146096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; However, the only values in the ACT_HI_VARINST table are booleans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That can't be correct. What data are you seeing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, what happens on different levels of history?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 08:25:48 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-03-31T08:25:48Z</dc:date>
    <item>
      <title>Values missing in ACT_HI_VARINST table</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192965#M146095</link>
      <description>Hello,I want to remove all references to overwritten values of variables in my activiti project, but still have access to the values held when the process ended. I was hoping to do this by setting the history level to "activity", as the user guide says "At the end of the process instance, the latest</description>
      <pubDate>Thu, 26 Mar 2015 16:49:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192965#M146095</guid>
      <dc:creator>pan_arker</dc:creator>
      <dc:date>2015-03-26T16:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Values missing in ACT_HI_VARINST table</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192966#M146096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; However, the only values in the ACT_HI_VARINST table are booleans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That can't be correct. What data are you seeing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, what happens on different levels of history?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 08:25:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192966#M146096</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-31T08:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Values missing in ACT_HI_VARINST table</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192967#M146097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The columns BYTEARRAY_ID, DOUBLE, TEXT and TEXT2 are all empty. The column LONG has values (0 for false, 1 for true) if VAR_TYPE is boolean, otherwise it is also empty. TASK_ID is also empty.&amp;nbsp; All other columns are complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the case when history level is activity, audit or full. I can't use none as I get an warning "In order to use comments, history should be enabled" (I have made quite a few changes to the Explorer module)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue I was trying to address was to remove sensitive information from the database at the end of a process execution. I hoped to do this by setting all the relevent variables to an empty string and having history level set at activity. The old values were still in ACT_HI_DETAIL though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have now worked out (with a little help from my friend) how to query the database from a JavaDelegate class and delete the necessary data that way, using the following code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String processId = execution.getProcessInstanceId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ManagementService m = execution.getEngineServices().getManagementService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String tableName = m.getTableName(HistoricDetail.class);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String baseQuerySql = "DELETE FROM " + tableName + " WHERE PROC_INST_ID_=" + processId + " "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + "AND NAME_ IN('firstName','lastName','address')" + ";";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HistoryService h = execution.getEngineServices().getHistoryService(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;h.createNativeHistoricVariableInstanceQuery().sql(baseQuerySql).list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to delete the same data, when it was used in a called subprocess, I got that process's ProcessInstanceId as a variable and used that in a second query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So as long as the values in ACT_HI_VARINST remain missing, I'm OK! Maybe I should include a query to delete them too, just to be safe.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 12:37:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192967#M146097</guid>
      <dc:creator>pan_arker</dc:creator>
      <dc:date>2015-03-31T12:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Values missing in ACT_HI_VARINST table</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192968#M146098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"The old values were still in ACT_HI_DETAIL though."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, that is the point of an audit trail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The approach you describe there works of course. I would add the missing vars too … it doesn't sound right you are not seeing them!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 12:25:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/values-missing-in-act-hi-varinst-table/m-p/192968#M146098</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-04-07T12:25:18Z</dc:date>
    </item>
  </channel>
</rss>

