记录一下activiti 5.22工作流问题

 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:所有事件发生都触发

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章