├───src
│ ├───main
│ │ ├───java
│ │ │ └───com
│ │ │ └───epam
│ │ │ └───demo
│ │ │ ├───config
│ │ │ ├───controller
│ │ │ ├───handler
│ │ │ └───service
│ │ └───resources
│ │ └───processes
│ └───test
│ └───java
│ └───com
│ └───epam
│ └───demo
- SpringBoot 2.6.6
- Flowable 6.7.2
- Build an expense process by Flowable
- The process file is in src/main/resources/processes
- You can generate BPM XML by downloading the Flowable Applications
- How to design a BPM by Flowable Applications: BPMN User Guide
- Download the BPM XML file and copy it into src/main/resources/processes folder.
- Flowable is using the Liquibase to generate required table.
- You need config your mysql in application.yml file
spring: datasource: driverClassName: com.mysql.cj.jdbc.Driver password: hewanyu1114 url: jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8&serverTimezone=UTC username: root flowable: # Close flowable async job async-executor-activate: false
- Add proxy assignee role
BossTaskHandler ManagerTaskHandler
- Add major handler service
ExpenseService
- Add rest api for each link of BPM process
ExpenseController
- You can request the rest api to start,approved,rejected and stop the process.
- Install JDK8.x or later.
- Downloading Flowable6.7.2 Flowable Applications
- Get in the flowable6.7.2 folder and find the 'wars' folder.
- Copy the 'flowable-ui.war' to 'Tomcat 10.0/webapps'
- Start 'flowable-ui.war'
java -jar flowable-ui.war
- Open the URL: http://localhost:8080/flowable-ui/
- The default username and password is "admin:test"