springboot如何集成camunda

发布时间:2021-10-18 09:20:32 作者:小新
来源:亿速云 阅读:230

这篇文章主要介绍了springboot如何集成camunda,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

1、说明

camunda使用Java开的工作流引擎。这里使用springboot 2.2.6.release + camunda 3.4.2

2、配置实战

使用camunda流程引擎、web界面、Rest服务接口相应依赖如下:

如果仅仅是使用流程引擎,只需要引入camunda-bpm-spring-boot-starter就可以了。

(1)pom.xml文件配置

<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文件配置

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等

springboot如何集成camunda

第一次启动,Mysql数据库会自动生成Camunda相关数据库表

springboot如何集成camunda

3、生成数据库表说明

感谢你能够认真阅读完这篇文章,希望小编分享的“springboot如何集成camunda”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!

推荐阅读:
  1. SpringBoot集成Graylog
  2. SpringBoot如何集成swagger

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

springboot camunda

上一篇:js如何实现下划线和驼峰互相转换

下一篇:pycharm上如何实现python虚拟环境移到离线机器上

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》