泛微OA查询流程节点条件

 泛微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

其中wb.isvalid = 1 AND wb.islockworkflow = 0分别表示启用中的和未锁定的流程。

你可能感兴趣的:(付费专栏,Java,web开发,java)