As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> <property name="dataSource" ref="dataSource"/> <property name="transactionManager" ref="transactionManager"/> <property name="databaseSchemaUpdate" value="false"/> <property name="databaseSchema" value="mySchema"/> <property name="databaseTablePrefix" value="mySchema."/> ….. </bean>
<br>…<br>public boolean isEngineTablePresent(){<br> return isTablePresent("ACT_RU_EXECUTION") || isTablePresent(prependDatabaseTablePrefix("ACT_RU_EXECUTION"));<br> }<br> public boolean isHistoryTablePresent(){<br> return isTablePresent("ACT_HI_PROCINST") || isTablePresent(prependDatabaseTablePrefix("ACT_HI_PROCINST"));<br> }<br> public boolean isIdentityTablePresent(){<br> return isTablePresent("ACT_ID_USER") || isTablePresent(prependDatabaseTablePrefix("ACT_ID_USER"));<br> }<br><br> public boolean isTablePresent(String tableName) {<br>// tableName = prependDatabaseTablePrefix(tableName);<br> Connection connection = null;<br> try {<br> connection = sqlSession.getConnection();<br> DatabaseMetaData databaseMetaData = connection.getMetaData();<br> ResultSet tables = null;<br> <br> String schema = this.connectionMetadataDefaultSchema;<br> if (dbSqlSessionFactory.getDatabaseSchema()!=null) {<br> schema = dbSqlSessionFactory.getDatabaseSchema();<br>…<br>