camunda工作流开发实战------02 集成springboot

camunda文档地址 Camunda Platform documentation | docs.camunda.org 

pom坐标  

  <!-- camunda  -->
          <dependency>
              <groupId>org.camunda.bpm.springboot</groupId>
              <artifactId>camunda-bpm-spring-boot-starter</artifactId>
              <version>7.13.0</version>
          </dependency>
          <dependency>
              <groupId>org.camunda.bpm.springboot</groupId>
              <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
              <version>7.13.0</version>
          </dependency>
          <dependency>
              <groupId>org.camunda.bpm.springboot</groupId>
              <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
              <version>7.13.0</version>
          </dependency>
          <dependency>
              <groupId>org.projectlombok</groupId>
              <artifactId>lombok</artifactId>
              <version>${lombok.version}</version>
              <scope>provided</scope>
          </dependency>

          <dependency>
              <groupId>org.camunda.bpm</groupId>
              <artifactId>camunda-engine</artifactId>
              <version>7.13.0</version>
          </dependency>

          <dependency>
              <groupId>org.camunda.bpm</groupId>
              <artifactId>camunda-engine-spring</artifactId>
              <version>7.13.0</version>
          </dependency>

yml配置 

camunda:
  bpm:
  # 流程引擎name
    process-engine-name: camundaEngine
  # 历史级别
    history-level: full
  # 是否自动部署
    auto-deployment-enabled: false
  #id生产规则 允许值:simple、strong、prefixed。prefixedid 生成器类似于strong,但使用 Spring 应用程序名称 ( ${spring.application.name}) 作为每个 id 的前缀。
    id-generator: simple
    deployment-resource-pattern:
    - classpath:processes/*.bpmn20.xml
    job-execution:
      enabled: true
  # database:
  #   type: postgres
  #   # 在使用自定义模式和表前缀时,应该手动使用sql脚本创建camunda所需要的的表
  #   table-prefix: camunda_service.
  #   jdbc-batch-processing: true
    authorization:
      enabled: true
    admin-user:
      id: admin
      first-name: admin
      password: 123456
  # 禁用web首页登陆 默认true
    webapp:
      index-redirect-enabled: true

更多配置 https://docs.camunda.org/manual/7.13/user-guide/spring-boot-integration/configuration/

camunda集成SpringBoot 自定义节点样例启动类添加注解

@EnableProcessApplication

配置好数据库以后基本就可以了但是要注意 camunda 会在数据库添加 49 张表 ,如果启动不了 ,尝试 更改  url

url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&sslMode=DISABLED&allowPublicKeyRetrieval=true&serverTimezone=CTT&zeroDateTimeBehavior=CONVERT_TO_NULL&nullCatalogMeansCurrent=true

camunda 数据库表结构介绍 

camunda数据库表结构介绍_大龄码农有梦想的博客-CSDN博客_camunda表结构说明

camunda集成SpringBoot 自定义节点样例

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值