# Springboot - flowable with dedicated db

**URL:** <https://forum.flowable.org/t/springboot-flowable-with-dedicated-db/12484>\
**Category:** Flowable Engine\
**Created:** [December 2, 2025, 5:58am UTC](https://forum.flowable.org/t/springboot-flowable-with-dedicated-db/12484 "2025-12-02T05:58:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anderson](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@Anderson](https://forum.flowable.org/u/Anderson)\
**Post date:** [December 2, 2025, 5:58am UTC](https://forum.flowable.org/t/springboot-flowable-with-dedicated-db/12484/1 "2025-12-02T05:58:45Z")

</div>

Issue Description: Flowable with Spring Boot is not creating tables in the dedicated Flowable\_DB schema.

Current setup:

- There are two application schemas: App1Schema and App2Schema, each with its own transaction manager and EntityManagerFactory.

- Flowable should use a third schema, Flowable\_DB, through a dedicated datasource and transaction manager.

Configuration:

- Java config:

- YAML configuration:

Gradle :  
`implementation "org.flowable:flowable-spring-boot-starter:7.0.1"`

Using springboot 3.5.5

Problem observed:

- Despite this configuration, Flowable always creates its tables in the primary schema (App1Schema) instead of the dedicated Flowable\_DB schema.

- When adding `databaseSchema: flowable_db`, Flowable creates all act\_\* tables in App1Schema and the flw\_\* tables in Flowable\_DB.

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [December 2, 2025, 8:34am UTC](https://forum.flowable.org/t/springboot-flowable-with-dedicated-db/12484/2 "2025-12-02T08:34:03Z")

</div>

The reason why you are seeing this is due to the fact that you are only changing the data source on the process engine.

Can you try changing the `EngineConfigurationConfigurer` to use the `SpringAppEngineConfiguration`?

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![Anderson](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@Anderson](https://forum.flowable.org/u/Anderson)\
**Post date:** [December 2, 2025, 10:27am UTC](https://forum.flowable.org/t/springboot-flowable-with-dedicated-db/12484/3 "2025-12-02T10:27:07Z")

</div>

> [@Anderson](#):
>
> `SpringProcessEngineConfiguration`

Thanks @filiphr , below code worked

`@Configuration`  
`public class FlowableEngineConfig implements EngineConfigurationConfigurer<SpringAppEngineConfiguration> {`

` @Autowired`  
` @Qualifier("flowableDataSource")`  
` private DataSource flowableDataSource;`

` @Autowired`  
` @Qualifier("flowableTxManager")`  
` private PlatformTransactionManager flowableTxManager;`

` @Override`  
` public void configure(SpringAppEngineConfiguration config) {`  
` config.setDataSource(flowableDataSource);`  
` config.setTransactionManager(flowableTxManager);`  
` config.setDatabaseSchemaUpdate(AppEngineConfiguration.`_`DB_SCHEMA_UPDATE_TRUE`_`);`  
` }`

`}`
