<?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: Question about History Level in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43364#M23621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When we first encountered this problem, we added a history property in the process engine.&amp;nbsp; However, this would cause an error… I don't remember what it was off the top of my head, but we would see something like historyLevel 1 is not equal to 2 or something like that.&amp;nbsp; That's when we figured out that we needed a value in the database and added that insert ourselves.&amp;nbsp; Once we had that and made it agree with what was in the history property in the configuration file we were okay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just concerned because it appears that a value is needed in the database, but it's not being inserted by the setup scripts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2011 15:03:13 GMT</pubDate>
    <dc:creator>brianrook</dc:creator>
    <dc:date>2011-10-04T15:03:13Z</dc:date>
    <item>
      <title>Question about History Level</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43360#M23617</link>
      <description>We just upgraded from 5.2 to 5.6 and we're using DB2 as our RDBMS platform.&amp;nbsp; We are currently creating the database and seed data manually from the scripts because the 'automatic' DB upgrade tool doesn't work.&amp;nbsp; However, we ran into an issue last night that I am curious about.&amp;nbsp; My development and tes</description>
      <pubDate>Fri, 30 Sep 2011 17:03:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43360#M23617</guid>
      <dc:creator>brianrook</dc:creator>
      <dc:date>2011-09-30T17:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Question about History Level</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43361#M23618</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;What Activiti configuration are you using? Could you post the activiti.cfg.xml contents or equivalent info?&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>Sat, 01 Oct 2011 13:49:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43361#M23618</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-10-01T13:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question about History Level</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43362#M23619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's the current Activiti configuration for that project:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;"&lt;BR /&gt; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt; xmlns:context="&lt;A href="http://www.springframework.org/schema/context" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/context&lt;/A&gt;"&lt;BR /&gt; xmlns:tx="&lt;A href="http://www.springframework.org/schema/tx" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/tx&lt;/A&gt;"&lt;BR /&gt; xsi:schemaLocation="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans-3.0.xsd&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; &lt;A href="http://www.springframework.org/schema/context" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/context&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/context/spring-context-2.5.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/context/spring-context-2.5.xsd&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; &lt;A href="http://www.springframework.org/schema/tx" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/tx&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/tx/spring-tx-3.0.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/tx/spring-tx-3.0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseType" value="db2" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSource" ref="documentDataSource" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="iipTransactionManager" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="deploymentResources" value="classpath*:bpmn20/*.bpmn20.xml" /&amp;gt; &amp;lt;!– Deploy all process definitions –&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;I assume that this gives historyLevel the default value of "audit" which I think is equal to "2".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the ACT_GE_PROPERTY insert statements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;insert into ACT_GE_PROPERTY&lt;BR /&gt;values ('schema.version', '5.6', 1);&lt;BR /&gt;&lt;BR /&gt;insert into ACT_GE_PROPERTY&lt;BR /&gt;values ('schema.history', 'create(5.6)', 1);&lt;BR /&gt;&lt;BR /&gt;insert into ACT_GE_PROPERTY&lt;BR /&gt;values ('next.dbid', '1', 1);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I get the historyLevel error with these values in that table until I add this one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;insert into ACT_GE_PROPERTY&lt;BR /&gt;values ('historyLevel', '2', 1);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;which seems to enable it to work&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 14:40:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43362#M23619</guid>
      <dc:creator>brianrook</dc:creator>
      <dc:date>2011-10-03T14:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question about History Level</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43363#M23620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay thanks. The history level in the database is the one used in the Activiti Engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The history level in the configuration is only used to fill the history level in the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the history level is not set during the upgrade then that's probably a bug. Maybe it works if you set the history level explicitly in the configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if this works for you then that's good right?&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>Tue, 04 Oct 2011 09:07:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43363#M23620</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-10-04T09:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question about History Level</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43364#M23621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When we first encountered this problem, we added a history property in the process engine.&amp;nbsp; However, this would cause an error… I don't remember what it was off the top of my head, but we would see something like historyLevel 1 is not equal to 2 or something like that.&amp;nbsp; That's when we figured out that we needed a value in the database and added that insert ourselves.&amp;nbsp; Once we had that and made it agree with what was in the history property in the configuration file we were okay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just concerned because it appears that a value is needed in the database, but it's not being inserted by the setup scripts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 15:03:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43364#M23621</guid>
      <dc:creator>brianrook</dc:creator>
      <dc:date>2011-10-04T15:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question about History Level</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43365#M23622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's inserted by code when schema is created the first time, and inserted so you DON'T change the histry level on an existing engine (to prevent inconsistency of data and really really bad things from happening &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;). So changing the property in the database is a bad idea…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:11:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43365#M23622</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-10-05T06:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question about History Level</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43366#M23623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We just ran into this ourselves, and the answer given is not acceptable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many envrionments (such as ours) do not allow the database schema to be maintaned by the application, rather by DBAs. Thus the databaseSchemaUpdate MUST be set to "false" and the database created/updated via external scripts by the DBAs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Saying the only way for this to be set is by having update=true makes this product unusable for environments like ours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For us, we were able to read the code and figure out what was missing, but this should be documented.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 02:31:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-history-level/m-p/43366#M23623</guid>
      <dc:creator>jrussell</dc:creator>
      <dc:date>2012-04-13T02:31:41Z</dc:date>
    </item>
  </channel>
</rss>

