<?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: changeDeploymentTenantId does not set Tenant in Historic Tables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199659#M152789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I've written the script. I was more interested in the reasoning of excluding the history tables from the API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 17:43:17 GMT</pubDate>
    <dc:creator>jorell</dc:creator>
    <dc:date>2015-04-08T17:43:17Z</dc:date>
    <item>
      <title>changeDeploymentTenantId does not set Tenant in Historic Tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199655#M152785</link>
      <description>I couldn't find any info on this despite searching, apologies if this has already been addressed.changeDeploymentTenantId in RepositoryService doent set tenant in any of the history tables which have Tenant_id_ columns (PROCINST, ACTINST). This seems like an oversight since the database ends up in a</description>
      <pubDate>Tue, 07 Apr 2015 23:13:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199655#M152785</guid>
      <dc:creator>jorell</dc:creator>
      <dc:date>2015-04-07T23:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: changeDeploymentTenantId does not set Tenant in Historic Tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199656#M152786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jorell,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May be I do not understand the problem, but does it make sense to change the history?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you have changed tenantId, is proper tenant id logged into history tables?&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>Wed, 08 Apr 2015 06:59:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199656#M152786</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-04-08T06:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: changeDeploymentTenantId does not set Tenant in Historic Tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199657#M152787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt;May be I do not understand the problem, but does it make sense to change the history?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It does make sense if you are saying that deployment 'A' now has tenant 'T'. All the runtime process instances of 'A' will now have tenant 'T' but all the history tables will show blank tenant. So now, for reporting, if users of 'T' want to pull up reports on their processes, they will have lost all processes finished before the change in tenant. You will have process instances in the history table belonging to the same process definition but some will have tenant 'T' while others won't. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From my perspective a tenant is (should?) be basically an attribute of the deployment, the api also suggests this (changeDeploymentTenantId). So the historic tables have a relationship with a deployment through proc_def_id_ anyway. Having different tenant values for the same proc def values seems inconsistent to me but maybe I am misunderstanding the reasoning for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;When you have changed tenantId, is proper tenant id logged into history tables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't tested this out, I assumed it works but I'll test it out and report back here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 07:37:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199657#M152787</guid>
      <dc:creator>jorell</dc:creator>
      <dc:date>2015-04-08T07:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: changeDeploymentTenantId does not set Tenant in Historic Tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199658#M152788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The history tables are not updated automatically. So you need to write a custom update script to make sure the history tables are also updated.&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>Wed, 08 Apr 2015 10:36:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199658#M152788</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-04-08T10:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: changeDeploymentTenantId does not set Tenant in Historic Tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199659#M152789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I've written the script. I was more interested in the reasoning of excluding the history tables from the API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:43:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199659#M152789</guid>
      <dc:creator>jorell</dc:creator>
      <dc:date>2015-04-08T17:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: changeDeploymentTenantId does not set Tenant in Historic Tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199660#M152790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Changing a tenant id is not a common step to make, because a tenant identifier typically stays the same. But of course there are cases where you would like to change the tenant id, and we support it in our runtime tables. But also changing all historic data might not be valid for all use cases where the tenant id changes. We could however add conditional logic that allows a user to define if all historic data should be changed as well. Could you create a JIRA issue for this?&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>Sun, 12 Apr 2015 08:36:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changedeploymenttenantid-does-not-set-tenant-in-historic-tables/m-p/199660#M152790</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-04-12T08:36:03Z</dc:date>
    </item>
  </channel>
</rss>

