Assigning work rules to employees