jeecgboot3.6.1集成camund工作流引擎

1,191 阅读1分钟

引言

本文主要讲解jeecgboot3.6.1如何集成camunda7工作流引擎。
BPMN在线建模

安装步骤

  • 找到项目的 父pom.xml文件, 在dependencyManagement->dependencies
<properties>
    <camunda.spring-boot.version>7.18.0</camunda.spring-boot.version>
</properties>

<dependency>
   <groupId>org.camunda.bpm.springboot</groupId>
   <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
   <version>${camunda.spring-boot.version}</version>
</dependency>

<dependency>
   <groupId>org.camunda.bpm.springboot</groupId>
   <artifactId>camunda-bpm-spring-boot-starter</artifactId>
   <version>${camunda.spring-boot.version}</version>
</dependency>
<dependency>
   <groupId>org.camunda.bpm.springboot</groupId>
   <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
   <version>${camunda.spring-boot.version}</version>
</dependency>
  • 在自建的camunda模块的pom文件中添加依赖
<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>
<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter</artifactId>
</dependency>
  • application.yml配置文件
camunda:
  bpm:
    admin-user:
      id: admin
      password: 123456
  • ShiroConfig 配置不拦截camunda管理
filterChainDefinitionMap.put("/camunda/*", "anon"); //camunda接口排除
  • 自带camunda管理后台地址
http://localhost:8080/jeecg-boot/camunda/app/welcome/default/#!/login

异常

  • 如果出现如下异常。
### SQL: select * from ACT_GE_PROPERTY where NAME_ = ?
### Cause: java.sql.SQLSyntaxErrorException: Table 'jeecg-camunda.act_ge_property' doesn't exist

!!!解决办法是在mysql上加配置, 找到application.yml相关文件, 添加nullCatalogMeansCurrent=true
如下:
url: jdbc:mysql://rxxx/jeecg-camunda?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true

jeecgboot3.6.1下载地址

jeecgboot3.6.1
jeecg-vue3.6.1
jeecgboot3.6.1集成flowable视频教程-B站
jeecgboot3.6.1集成activiti视频教程-B站
jeecgboot3.6.1集成camunda视频教程-B站