demo based on flowable blog
./mvnw install
- in vscode press F5 to debug
pom.xml
contains postgresql dependency, add a custom FlowableConfiguration
class to load flowable configuration on startup.
if the error log says:
Could not update Flowable database schema: unknown version from database: '6.4.1.3'
then run select * from act_ge_property
to see if flowable version is not correct, detailed discuss see https://forum.flowable.org/t/flowable-database-exception/797/2
Because I have built flowable from source, so my database upgraded to 6.4.1.3
, to fix this error, just change flowable-spring-boot-starter-rest
version to 6.4.1-SNAPSHOT
Don't know why flowable.cfg.xml
can't atomatically registered, so I wrote a EventRegisterCommandLineRunner
to register event listener at app startup.
get process definitions:
curl -i --user flowfest-rest:test 'localhost:8088/latest-definitions/'
get tasks:
curl -i --user flowfest-rest:test 'localhost:8088/process-api/runtime/tasks/'
build
docker build -t xcaptain/flowable-demo .
run
docker run --rm -p 8088:8088 -e SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.postgresql.Driver -e SPRING_DATASOURCE_URL=jdbc:postgresql://192.168.1.1:5432/flowable -e SPRING_DATASOURCE_USERNAME=flowable -e SPRING_DATASOURCE_PASSWORD=flowable --name flowable-demo xcaptain/flowable-demo:latest