How to Let Flowable use Liquibase Credentials to Create its Tables at Startup

I use Flowable in a Spring Boot app, and we usually use two distinct users to access the database:

  • One for creating the schema via liquibase
  • One for normal business functionality

Here’s how our configuration looks like:

# The database application user
spring.datasource.username=${DB_ADMIN_USERNAME}
spring.datasource.password=${DB_ADMIN_PASSWORD}
# The schema owner
spring.liquibase.user=${DB_ADMIN_USERNAME}
spring.liquibase.password=${DB_ADMIN_PASSWORD}

As a workaround to run my PoC I just used the same admin credentials for both users… but this is not the way we wanna go. Is it possible to let Flowable use the liquibase credentials to create the its tables at startup?

Thank you very much.

Hi j3d,

according

If you implement your own schema manager and reconfigure engine you could use another datasource for schema manipulation and operations.

Regards
Martin