1. 程式人生 > >activiti工作流,資料庫表解析。

activiti工作流,資料庫表解析。


-- 釋出的流程資訊 存有id和名稱。   該id分別在“部署的流程” 和“通用資料” 中記錄 以該表為紐帶,關聯 “部署的流程act_re_procdef” 與“部署流程的配置資訊(該配置資訊記錄在‘通用資料’act_ge_bytearray表中)”

select * from act_re_deployment  order by id_ desc


-- 部署的流程 (部署的流程_帶版本號)(key_用於啟動  resource_name_  是流程定義的xml名稱  dgrm_resource_name_ 是流程的圖片名稱  資料在act_ge_bytearray表中)

select * from act_re_procdef order by id_ desc  -- 存有act_re_deployment的id


-- 定義的流程 (流程設計工作區——基礎設計)(設計資訊在“通用資料act_ge_bytearray表”裡儲存,id記錄在act_re_model表的editor_source_value_id_ 和 editor_source_extra_value_id_ 欄位中)

select * from act_re_model order by create_time_ desc

-- 通用資料 (流程的xml 和流程png圖片儲存處)(與act_re_deployment 關聯) 2、還存有流程設計資訊(與流程設計表act_re_model 進行關聯。)

select * from act_ge_bytearray order by id_ desc


-- 通用全域性屬性
 

select * from act_ge_property order by id_ desc

-- 執行時流程變數資料表

select * from act_ru_variable


-- 執行時流程執行例項表

select * from act_ru_execution


-- 執行時任務節點表

select * from act_ru_task order by create_time_ desc


-- 執行時流程人員表,主要儲存任務節點與參與者的相關資訊
 

select * from act_ru_identitylink


-- 歷史資料庫表
 

select * from  act_hi_procinst order by start_time_ desc  -- 歷史流程例項表

select * from  act_hi_actinst order by start_time_ desc   -- 歷史節點表

select * from  act_hi_taskinst order by start_time_ desc -- 歷史任務例項表

select * from  act_hi_identitylink  -- 歷史流程人員表

select * from  act_hi_attachment -- 歷史附件表

select * from  act_hi_comment  -- 歷史意見表

select * from  act_hi_detail order by id_ desc  -- 歷史詳情表,提供歷史變數的查詢

select * from  act_hi_varinst  -- 歷史變量表