Coder Social home page Coder Social logo

Comments (5)

stphngrtz avatar stphngrtz commented on July 20, 2024 4

Just in case anyone is facing the same problem, this is how I was able to run Flyway migration just before the bpm engine gets created (and thus complains about missing tables):

@Bean
AbstractProcessEnginePlugin flywayInitializingProcessEnginePlugin(FlywayMigrationInitializer initializer) {
    return new AbstractProcessEnginePlugin() {
        @Override
        public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
        }
    };
}

By requesting a bean of type FlywayMigrationInitializer the auto configuration of Flyway (which includes running the migration) kicks in during initialization of the bpm engine.

from camunda-bpm-spring-boot-starter.

osteinhauer avatar osteinhauer commented on July 20, 2024

Hi Jan.

I have used flyway many times even in conjunction with camunda. I like flyway ;)

The main issue is managing the script/schema versions. Someone needs to provide the scripts in the flyway way. One way could be to copy the scripts and introduce flyway properties to give control at startup.

Haven't checked but using liquibase (which is supported by spring boot too) could be easier because migration definitions are separated from scripts . Maybe it is a good idea to support both.

from camunda-bpm-spring-boot-starter.

osteinhauer avatar osteinhauer commented on July 20, 2024

Do you like to integrate your PoC so it can be activated if flyway is in the classpath?

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

closed, good idea but no reason to keep it open

from camunda-bpm-spring-boot-starter.

stphngrtz avatar stphngrtz commented on July 20, 2024

Why not? I'd love this feature.

Just putting flyway to the classpath and disabling the schema update of camunda bpm seems not to work because the schema validation of camunda bpm runs before any flyway script has been executed :-/

from camunda-bpm-spring-boot-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.