For example, the first node is when an employee fills out a leave application, and the second node is when the department manager approves it. If you define the "superior" receiving type on the connection line, you can find the leader of the department ( for example, if the department manager role is satisfied and the restriction filter is in the department (Technology Department) , you will not find the department manager of the (Finance Department) ).


Stored procedure: pr_sys_DeptUserListRankQuery