Employee's and Organizational unit's location values:
// each employee and each organizational unit must have defined location coordinates: latitude and longitude values (decimal)
Pseudocode of Distance to workplace rules:
-
IF [Employee's Distance] >= [100 km to OU] THEN evaluation = [1] - not appropriate
// if an employee's distance to the compared organizational unit is 100 kilometres or more, an employee cannot be appropriate for the organizational unit
-
IF [Employee's Distance] > [75 km to OU] and < [100 km to Organizational unit] THEN evaluation = [2] - less appropriate
// if an employee's distance to the compared organizational unit is between 75 and 100 kilometres, an employee could be less appropriate for the organizational unit
-
IF [Employee's Distance] > [25 km to OU] and <= [75 km to Organizational unit] THEN evaluation = [3] - appropriate
// if an employee's distance to the compared organizational unit is between 25 and 75 kilometres, an employee could be appropriate for the organizational unit
-
IF [Employee's Distance] <= [25 km to OU] THEN evaluation = [4] - excellent
// if an employee's distance to the compared organizational unit is lower or equal to 25 kilometres, an employee could be excellent for the organizational unit
Distance to workplace rules response is input for Evaluating aggregated attribute "General work".