Skip to content

A demo workflow project using flowable and spring boot 2

Notifications You must be signed in to change notification settings

xcaptain/flowable-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flowable-demo

demo based on flowable blog

build

  1. ./mvnw install
  2. 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.

test

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/'

using docker

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

About

A demo workflow project using flowable and spring boot 2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published