ActivityException thrown on ProcessEngineConfiguration.buildProcessEngine()

Description

Application creates a process engine won't start because of a configuration issue of history level.

Reproduction:

  • Database tables created by bundled postgres scripts (org\activiti\db\create\activiti.postgres.create.*.sql).

  • There is no record in act_ge_property with name_ = 'historyLevel'.

  • Developing application with the following configuration:

  • On application start the following exception came:

Supposed location of the bug:
The root of this problem might be in org.activiti.engine.impl.db.DbSqlSession.dbSchemaCheckVersion() method, on lines 492-511:


It always checks the 'historyLevel' property in the database and if it is not there the before mentioned exception will be thrown, whether or not the history level property of ProcessEngineConfigurationImpl is set.

Local quickfix:
Quick (and dirty) solution was to insert the ("historyLevel";"1";1) record directly into the act_ge_property table of the database. It is dirty because the lines of dbSchemaCheckVersion() above checks if the property value is same in the config and in the db. So if i reconfigure the ProcessEngine, i will have to alter the data in the db manually too.

Possible solution:
I assume the modification of the quoted lines of the source code of the activiti engine is required to solve this issue.

Environment

PostgreSQL 9.0, OSGI (Felix), Java 6

Assignee

Frederik Heremans

Reporter

P_ter Ungv_ri

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure