Camunda BPM(简称Camunda)是德国一家名为Camunda的公司开发的一款流程管理产品,它是从Activiti分支发展而来。基于BPMN2.0工作流管理和流程自动化的开源平台,同时还支持DMN用于决策管理和CMMN用于案例管理。
1、安装 Open Source Desktop Modeler
下载网址:Download The Camunda BPMN / DMN Process Modeler | Camunda
1.1 将工具导入idea
1.2 启动建模工具
1.3 启动成功后会弹出建模页面
选择BPMN diagram
1.4 符号解释
示例:
2、 springboot集成camunda
2.1 引入camunda相关依赖包
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>
2.2 添加配置
# camunda配置信息
camunda.bpm:
deployment-resource-pattern:
- classpath:BPMN/*.bpmn
admin-user:
id: admin
password: admin
firstName: admin
filter:
create: All tasks
webapp:
index-redirect-enabled: true
2.3 启动项目打开camunda管理平台
http://127.0.0.1:port/ 账号、密码见yaml配置项
注:项目启动后会在数据库中自动创建camunda相关数据库表名都以ACT开头。
ACT_RE_*: 'RE’表示流程资源存储,这个前缀的表包含了流程定义和流程静态资源(图片,规则等)。
ACT_RU_*: 'RU’表示流程运行时。 这些运行时的表,包含流程实例,任务,变量,Job等运行中的数据。 Camunda只在流程实例执行过程中保存这些数据,在流程结束时就会删除这些记录, 这样运行时表的数据量最小,可以最快运行。
ACT_ID_*: 'ID’表示组织用户信息,比如用户,组等。
ACT_HI_*: 'HI’表示流程历史记录。 这些表包含历史数据,比如历史流程实例,变量,任务等。
ACT_GE_*: ‘GE’表示流程通用数据, 用于不同场景下。