官方文档:https://docs.camunda.org/manual/7.15/user-guide/spring-boot-integration/
官方springboot-camunda项目生成向导:https://start.camunda.com/
官方java doc:https://docs.camunda.org/javadoc/camunda-bpm-platform/7.15/
官方文档多任务实例:https://docs.camunda.org/manual/7.15/reference/bpmn20/tasks/task-markers/
参考文档1.https://www.qyh.me/articles/camunda-get-started
参考文档2.https://www.cnblogs.com/bytecodebuffer/p/10981071.html
camunda-bpmn-任务标记(Task Markers):https://www.jianshu.com/p/cffaae7b37c2
Camunda 多实例会签:https://blog.csdn.net/weixin_43150720/article/details/106659648
Camunda 多实例会签加签:https://blog.csdn.net/weixin_43150720/article/details/106784388
Camunda 流程引擎概念术语:https://blog.csdn.net/wxz258/article/details/109048648
assignee、candidateUsers、candidateGroups区别:https://www.jianshu.com/p/350f0fa21c09
这两个帖子对数据表分析的比较详细:
https://blog.csdn.net/qq_42758551/article/details/107192376
https://blog.csdn.net/wxz258/article/details/109048818
使用系列,每个流程操作了什么数据表,如何使用功能等:
https://blog.csdn.net/qq_35890572/category_10772538.html
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.workflow</groupId> <artifactId>workflow</artifactId> <version>1.0.0-SNAPSHOT</version> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>2.4.3</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-bom</artifactId> <version>7.15.0</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.camunda.bpm.springboot</groupId> <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId> <version>7.15.0</version> </dependency> <dependency> <groupId>org.camunda.bpm.springboot</groupId> <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId> <version>7.15.0</version> </dependency> <dependency> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-engine-plugin-spin</artifactId> </dependency> <dependency> <groupId>org.camunda.spin</groupId> <artifactId>camunda-spin-dataformat-all</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.10</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.4.3</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> </plugins> </build> </project>
application.yml
#camunda 配置camunda:
bpm:
admin-user:
id: admin
password: admin
firstName: admin
filter:
create: All tasks
job-execution:
enabled: true
metrics:
enabled: false
db-reporter-activate: false
#指定数据库类型
# database:
# type: mysql
#禁止自动部署resources下面的bpmn文件
auto-deployment-enabled: false
#禁止index跳转到Camunda自带的管理界面,默认true
# webapp:
# index-redirect-enabled: false
#mysql 数据库配置 spring: application: name: workflow datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost/camunda?serverTimezone=GMT%2B8&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&useSSL=false username: root password: root type: com.alibaba.druid.pool.DruidDataSource #服务端口 server: port: 8080
启动后访问 http://localhost:8080 账号密码admin admin