activiti配置文件的配置如下:
<!-- spring负责创建流程引擎的配置文件 -->
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"><!-- 数据源 -->
<property name="dataSource" ref="multipleDataSource" />
<!-- 配置事务管理器,统一事务 -->
<property name="transactionManager" ref="txManager" />
<!-- 设置建表策略,如果没有表,自动创建表 -->
<property name="databaseSchema" value="act"/>
<property name="databaseSchemaUpdate" value="true" />
</bean>
根据activiti官方文档的配置要求来看,没有什么问题,但是启动后报错
### The error may exist in org/activiti/db/mapping/entity/Property.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: select VALUE_ from ACT_GE_PROPERTY where NAME_ = 'schema.version'
### Cause: java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在
将配置文件改为如下的配置,问题就解决啦
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<!-- 数据源 -->
<property name="dataSource" ref="multipleDataSource" />
<!-- 配置事务管理器,统一事务 -->
<property name="transactionManager" ref="txManager" />
<!-- 设置建表策略,如果没有表,自动创建表 修改这个地方为大写 -->
<property name="databaseSchema" value="ACT"/>
<property name="databaseSchemaUpdate" value="true" />
</bean>
Activiti配置详解
本文介绍了一个Activiti工作流引擎配置中出现的问题及解决方案。通过调整数据库表前缀的大小写,解决了启动时出现的表不存在错误。
481

被折叠的 条评论
为什么被折叠?



