Ok, so you have an Approval, which has a list of Approvers, and an Approver refers to an Employee and has a status.
surya.raaj prakash wrote:Here from Approval object we will get list of Approver object,from Approver object we will get employee object..right?
Yes.
surya.raaj prakash wrote:But i would want how to write a logic to check the order and status to determine the next approver in the list?or how to check this employee same as next employee who supposed to approve from the approvers list?
It's not exactly clear to me what you want to do with the approvers of an approval. You can ofcourse look at the status of each approver, and you can look at the Employee that each Approver refers to. Since the list of approvers is a list, it will be in a certain order. What exactly do you want to check there; if the order is correct? If that is what you want, then what are the rules for a correct order? I guess that you can check if two Employees are the same by comparing their employeeNbrs.
Can you explain exactly what you want to do with the Approvers of an Approval?