泛微OA查询所有生效的流程的节点条件配置,SQL如下:
SELECT
wct.typename,
wb.id,
wb.isvalid,
wb.islockworkflow,
wb.workflowname AS workflowname,
wn.nodename AS nodename,
wn_next.nodename AS nextnodename,
wnl.conditioncn
FROM
workflow_flownode wf
INNER JOIN workflow_base wb ON wf.workflowid = wb.id
INNER JOIN workflow_nodebase wn ON wf.nodeid = wn.id
LEFT JOIN workflow_nodelink wnl ON wf.workflowid = wnl.workflowid
AND wnl.nodeid = wf.nodeid
INNER JOIN workflow_nodebase wn_next ON wnl.destnodeid = wn_next.id
INNER JOIN workflow_type wct ON wb.workflowtype = wct.id
WHERE wb.isvalid = 1 AND wb.islockworkflow = 0