Comments (5)
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.
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.
Do you like to integrate your PoC so it can be activated if flyway is in the classpath?
from camunda-bpm-spring-boot-starter.
closed, good idea but no reason to keep it open
from camunda-bpm-spring-boot-starter.
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)
- spring boot ee - index.html not found HOT 1
- Make AuthenticationFilter registration configurable HOT 1
- Script Task log output HOT 1
- Readme Examples link leads to 404 HOT 2
- Gradle examples have been removed? HOT 2
- Cannot resolve identifier 'myDelegateName' in 1/3 of my instances everyday.
- Pattern for multiple "process applications"? HOT 2
- The table-perfix property not work. HOT 2
- Spring Boot 2.1.0.RELEASE not supported! required a bean of type 'org.camunda.bpm.engine.ProcessEngine' that could not be found HOT 8
- "invalid date value "+propertyValue HOT 1
- Camunda bpmn with mockbean, not detecting Java class instance HOT 6
- delegate response is slow HOT 2
- Is JDK8 OK? HOT 1
- camunda sql exception!!!
- How can I get extension property through API?
- Intégration camunda HOT 1
- Simple dmn file showing error.. HOT 1
- Camunda webapp css and js dose not load in my spring boot app HOT 5
- camunda-bpm-spring-boot-starter-rest uses commons-io v2.5 with reported CVE Vulnaribilty CVE-2021-29425
- Hosted link does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camunda-bpm-spring-boot-starter.