我是靠谱客的博主 土豪洋葱,这篇文章主要介绍Camunda 2、Camunda工作流-SpringBoot集成 Camunda 流程引擎Spring Boot 集成 Camunda 流程引擎,现在分享给大家,希望可以做个参考。

Spring Boot 集成 Camunda 流程引擎

引入 spring-boot-start

在 maven pom.xml 文件中加入以下配置:

复制代码
1
2
3
4
5
<dependency> <groupId>org.camunda.bpm.springboot</groupId> <artifactId>camunda-bpm-spring-boot-starter</artifactId> <version>7.13.0</version> </dependency>

或在 build.gradle 文件中加入以下配置:

复制代码
1
compile 'org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:7.13.0'

applicatioin.yml 配置

复制代码
1
2
3
4
# camunda 工作流配置 camunda: bpm: enabled: true

以上配置可不配,引入Camunda 默认 enabled 为 true,运行后自动创建相关的数据库表,使用Spring Boot 默认数据源。

注入流程引擎相关的接口服务类

以下流程引擎服务类都可以直接通过@Resource或@Autowired。

最后

以上就是土豪洋葱最近收集整理的关于Camunda 2、Camunda工作流-SpringBoot集成 Camunda 流程引擎Spring Boot 集成 Camunda 流程引擎的全部内容,更多相关Camunda内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部