本文主要介绍了springboot集成camunda的实现示例,文中通过示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
本文主要介绍了springboot集成camunda的实现示例,文中通过示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
本文主要介绍了springboot集成camunda的实现示例,文中通过示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
camunda使用Java开的工作流引擎。这里使用springboot 2.2.6.release + camunda 3.4.2
使用camunda流程引擎、web界面、Rest服务接口相应依赖如下:
如果仅仅是使用流程引擎,只需要引入camunda-bpm-spring-boot-starter就可以了。
(1)pom.xml文件配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
< properties > < camunda.version >3.4.2</ camunda.version > </ properties > <!-- camunda --> < dependency > < groupId >org.camunda.bpm.springboot</ groupId > < artifactId >camunda-bpm-spring-boot-starter-webapp</ artifactId > < version >${camunda.version}</ version > </ dependency > < dependency > < groupId >org.camunda.bpm.springboot</ groupId > < artifactId >camunda-bpm-spring-boot-starter-rest</ artifactId > < version >${camunda.version}</ version > </ dependency > <!-- camunda --> < dependency > < groupId >org.camunda.bpm.springboot</ groupId > < artifactId >camunda-bpm-spring-boot-starter</ artifactId > < version >${camunda.version}</ version > </ dependency > |
(2)yml文件配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
camunda: bpm: # 配置账户密码来访问Camunda自带的管理界面 admin-user: id: admin password: admin first-name: admin filter: create: All tasks #指定数据库类型 # database: # type: mysql #禁止自动部署resources下面的bpmn文件 auto-deployment-enabled: false #禁止index跳转到Camunda自带的管理界面,默认true # webapp: # index-redirect-enabled: false |
(3)启动项目
浏览器输入:http://localhost:8050/family-admin(项目的tomcat-context路径)可以查看当前工作流中的相关tasklist等
第一次启动,Mysql数据库会自动生成Camunda相关数据库表
到此这篇关于springboot集成camunda的实现示例的文章就介绍到这了,更多相关springboot集成camunda内容请搜索米米素材网以前的文章或继续浏览下面的相关文章希望大家以后多多支持米米素材网!
原文链接:https://www.jianshu.com/p/67271eddc95b
发表评论