栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

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

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

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

pom坐标  
  
          
              org.camunda.bpm.springboot
              camunda-bpm-spring-boot-starter
              7.13.0
          
          
              org.camunda.bpm.springboot
              camunda-bpm-spring-boot-starter-rest
              7.13.0
          
          
              org.camunda.bpm.springboot
              camunda-bpm-spring-boot-starter-webapp
              7.13.0
          
          
              org.projectlombok
              lombok
              ${lombok.version}
              provided
          

          
              org.camunda.bpm
              camunda-engine
              7.13.0
          

          
              org.camunda.bpm
              camunda-engine-spring
              7.13.0
          
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 自定义节点样例

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/462927.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号