activiti工作流
1、 項目名修改的時候記得修改contextRoot 路徑 (數據回顯不出來的問題解決方案)
WebContent/public/editor-app/app-cfg.js
ACTIVITI.CONFIG = {
'contextRoot' : '/Hematopathy/a/activiti',
};
中的項目路徑
2、 路徑修改過後修改 /Hematopathy/WebContent/public/editor-app/configuration/toolbar-default-actions.js
中的方法。改爲自定義跳轉路徑
$scope.saveAndClose = function () {
$scope.save(function() {
window.location.href = "../a/activiti/model/list";
});
};
./指上級頁面所在位置上級目錄,../指上兩級目錄所在
3、自定義插件屬性到 resources下 stencilset.json中修改
4、使用項目自身管理系統,使用視圖覆蓋形式替換,sql/update.sql。注意表名大寫
create or replace view USER_ROLE as select u.login_name as loginname,ur.role_id as rolecode from `sys_user` u left join sys_user_role ur on u.id = ur.user_id;
create or replace view ACT_ID_USER as select ur.login_name as id_, 1 as rev_,ur.name as first_, '' as last_, ur.email as email, ur.password as pwd_, ur.photo as picture_id_ from sys_user ur;
create or replace view ACT_ID_GROUP as select role.id as id_, 1 as rev_, role.enname as name_, 'assignment' as type_ from sys_role role;
create or replace view ACT_ID_MEMBERSHIP as select loginname as user_id_,rolecode as group_id_ from USER_ROLE;
5、監聽器
任務監聽器是發生對應的任務相關事件時執行自定義java邏輯 或表達式。
任務相當事件包括:
Create:任務創建後觸發
Assignment:任務分配後觸發
Complet:任務完成後觸發
All:所有事件發生都觸發