Mobile Shift Offer employee sort order
Mobile Shift Offer transactions can assign a sort order to the selected employees. When using the Mobile Shift Offer callout, the sort order can give certain employees an advantage to claim the open shift. For example, an open shift can be offered to the most senior employee first. If the shift offer is rejected, then the shift is offered to employees with lower seniority.
Each employee that has been selected for a shift offer has a rank number that determines the employee's position in the sort order. When sorting is enabled, the first employee in the sort order has a rank of 1. The rest of the employees are ranked in ascending order. The ranks are assigned based on the order of employees that is currently displayed in the Offer via Mobility pop-up. When sorting is disabled, all employees are assigned a rank of 0.
The outbound class that is created to implement the callout can use a service to retrieve each employee's rank value. The outbound class determines how the process of offering shifts is affected by employee ranks.