1. 流程模型:
流程设计模型部署表( act_re_model );
流程设计器设计流程后,保存数据到该表。
2. 流程定义
act_re_procdef(流程定义表);
流程部署后,会保存数据到该表。
注意: flowable从6.4.1开始,act_de_model代替原来的act_re_model表,act_re_model将作废,大家要注意。
3. 公共的表
配置表(act_ge_property):比如部署主键的id生成规则。以及版本校验
select * from act_ge_property;
4. 部署相关
(1)流程模型
保存了模型的BMP建模 可以通过模型数据进行流程部署 type=2为表单引擎的模型
select * from act_de_model;
(2)部署对象表(act_re_deployment)
每部署一次生成一条记录,首先生成这条数据,它的id主键将会被act_re_procdef和act_ge_bytearray作为外键。
select * from act_re_deployment;
(3)流程定义表
每次部署产生一次定义 运行时流程关联 对应流程相关就是 ProcessDefinition
select * from act_re_procdef where id_=‘group_process_test:1:5fee531f-62cb-11ec-95fa-acde48001122’;
(4)资源文件表
流程模型资源文件的真正存放地方,它每部署一次就会产生2条记录,一条是关于bpmn规范的文件内容存放在BYTES字段中,
另一条是图片信息,采用二进制格式存储。提示:可以部署后解析bpmn文件的内容自动生成流程图,实现流程图的跟踪线路。
select * from act_ge_bytearray;
5. 运行时相关
(1)运行的执行实例表(act_ru_execution)
如果有并行网关则会有多条。
这张表示父子级的表 PARENT_ID就是对应流程里的processInstance
他的子级就是当前运行节点,如果有并行网关就会有多个子集;
select * from act_ru_execution where ID_=‘f02a7b5a-7287-11ec-b863-acde48001122’
(2)记录当前运行中任务(act_ru_task) 待处理
select * from ACT_RU_TASK t where t.PROC_INST_ID_=‘32c2e63d-6242-11ec-8507-acde48001122’
(3)运行时流程人员表(act_ru_identitylink)
运行时流程人员表 任务参与者数据表。主要存储当前节点参与者的信息。
select * from act_ru_identitylink l where l.PROC_INST_ID_=‘66dc27b0-62cb-11ec-95fa-acde48001122’
6. 历史相关
(1)历史流程实例表(act_hi_procinst)
select * from act_hi_procinst h where h.PROC_INST_ID_=‘66dc27b0-62cb-11ec-95fa-acde48001122’
(2)历史活动信息(act_hi_actinst)
这里记录流程流转过的所有节点,与HI_TASKINST不同的是,taskinst只记录usertask内容
select * from ACT_HI_ACTINST
#历史task
select * from act_hi_taskinst
(3)历史任务表(act_hi_taskinst)
(4)历史流程人员表(act_hi_identitylink)
任务参与者数据表。主要存储历史节点参与者的信息。
select * from act_hi_identitylink l where l.PROC_INST_ID_=‘32c2e63d-6242-11ec-8507-acde48001122’
7. 流程变量相关
select * from act_ru_variable
select * from act_hi_varinst
8. 意见相关
(1)审批意见
select * from act_hi_comment
(2)审批附件
select * from act_hi_attachment
9. 定时任务相关
(1)运行中的定时任务(act_ru_timer_job)
定时开始事件,定时边界事件
select * from act_ru_timer_job
10. 信号事件相关
订阅了事件的流程实例(act_ru_event_subscr)
信号事件和消息事件
select * from act_ru_event_subscr
11. 锁相关
(1)查询被锁的表
SELECT * FROM act_de_databasechangeloglock;
(2)解除锁定
UPDATE act_de_databasechangeloglock SET locked=0, lockgranted=null, lockedby=null WHERE id=1