Hi everyone! Hopefully someone out there understands helper methods better than I do and can help me out.
I essentially have a team with three roles; Auth Approver, Wire Setup, and Wire Approver. Some members of the team may belong to all three roles
I also have a process with 3 steps. Auth Approver, Wire Setup, and Wire Approver and the tasks are assigned using a dynamic filter.
The employee that approves the Auth Approver step, should not be able to approve at the other two steps Wire Setup and Wire Approver at bank.
The employee that approves at Wire Setup should also not be allowed to approve the last step, Wire approver at bank.
This is the helper method I have. It seems to work at not allowing the approver at the first step, approve the second step, but when it moves to the third step, anyone can approve again...
var ExcludeAuthApprover = team.excludeTaskLastSubmitters(11);
var ExcludeWiresetupatbank = team.excludeTaskLastSubmitters(7);
var WireApproveratBank = team.findMembersByRole('Wire Approver at Bank');
$result=$util.union(ExcludeAuthApprover,ExcludeWiresetupatbank,WireApproveratBank);