【EAS工作流】查询/删除工作流角色与流程定义的关联关系
--1、获取工作流角色fid,登录EAS客户端-工作流角色-选中某个角色,按ctrl+shift+c,就复制了该角色的fid
--2、查询工作流角色被哪些流程定义引用的sql(替换下面3处工作流角色fid):
select
distinct PROCDEF.FNAME_l2 AS name,
PROCDEF.FProcCode AS number,
PROCDEF.FINNERVERSION,
PROCDEF.FAUTHOR AS creator
from
T_WFR_ProcDef AS PROCDEF
right join
T_WFR_PRODEFROLE as b
on PROCDEF.fprocdefid = b.fprocdefid
WHERE
(
PROCDEF.FPROCDEFTYPE = 'NORMAL'
OR PROCDEF.FPROCDEFTYPE = 'MICRO'
)
and b.fwfroleid= '此处替换工作流角色fid'
and b.FType = 1
union
all (
select
distinct PROCDEF.FNAME_l2||'('||scheme.fname_l2||')' AS name,
PROCDEF.FProcCode AS number,
PROCDEF.FAUTHOR AS creator
from
T_WFR_ProcDef AS PROCDEF
right join
T_WFR_WFStartScheme as scheme
on PROCDEF.fprocdefid = scheme.fprocdefid
WHERE
(
PROCDEF.FPROCDEFTYPE = 'NORMAL'
OR PROCDEF.FPROCDEFTYPE = 'MICRO'
)
and (
scheme.fwfroleid= '此处替换工作流角色fid'
or scheme.FWFORGROLEID ='此处替换工作流角色fid'
)
)
--3、备份工作流角色与流程定义的关联信息
select * into T_WFR_PRODEFROLE_bk from T_WFR_PRODEFROLE where fwfroleid='此处替换工作流角色fid';
--4、删除工作流角色与流程定义的关联信息
delete from T_WFR_PRODEFROLE where fwfroleid='此处替换工作流角色fid';
--5、可以在前台删除该工作流角色了
【EAS工作流】查询/删除工作流角色与流程定义的关联关系
本文2024-09-16 22:08:25发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-46179.html