如何建立一個activiti工作流
Activiti是一個強大的業務流程管理(BPM)架構,他本身需要資料庫支援,它使用了Mybatis作為持久化架構,對于資料庫管理系統(DBMS)支援多個。并且它的資料庫表名有一定的特征。
資源庫流程規則表
1)act_re_deployment 部署資訊表
2)act_re_model 流程設計模型資訊表
3)act_re_procdef 流程定義資料表
運作時資料庫表
1)act_ru_execution 運作時流程執行執行個體表
2)act_ru_identitylink 運作時流程人員表,主要存儲任務節點與參與者的相關資訊
3)act_ru_task 運作時任務節點表
4)act_ru_variable 運作時流程變量資料表
曆史資料庫表
1)act_hi_actinst 曆史節點表
2)act_hi_attachment 曆史附件表
3)act_hi_comment 曆史意見表
4)act_hi_identitylink 曆史流程人員表
5)act_hi_detail 曆史詳情表,提供曆史變量的查詢
6)act_hi_procinst 曆史流程執行個體表
7)act_hi_taskinst 曆史任務執行個體表
8)act_hi_varinst 曆史變量表
組織機構表
1)act_id_group 使用者組資訊表 JBPM_ID_MEMBERSHIP
2)act_id_info 使用者擴充資訊表
3)act_id_membership 使用者與使用者組對應資訊表
4)act_id_user 使用者資訊表
1.導包
這是我自己做的一個
2.配置xml
3.測試
@Test
标題
public void testConnect3() throws Exception {
// 核心對象
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
System.out.println(processEngine);
}