How do you determine if the submitter of a leave request is a direct or indirect supervisor uptil the top or hierarchy. also how do you handle multiple supervisors?
I am trying to check that either employee or his/her manager has raised a request in an action that is common for all.
if (actor.agent(Employee).Employee != Employee
and actor != actor.agent(Employee).DirectSupervisorActor )