Create Leave of Absence Rules
Security:
Set Up: Leave of Absence
domain in Time Off and Leave functional area.You can create leave of absence rules to define:
- Worker eligibility for leave types.
- Validations that prevent the submission of invalid leave requests.
When you don't configure leave of absence rules, you can only limit eligibility for a leave type to workers in selected countries or regions.
Eligibility rules apply when entering leave requests. The
Leave Type
prompt displays only those leave types that the worker is eligible for on the start date of the request. Example: Restrict eligibility to full-time workers, or require that workers work at least 1,250 hours in the last 12 months.Validation rules apply when submitting leave requests. Workday applies the rule to each day of the requested leave. Example: The length of a worker's requested leave can't exceed the maximum number of days allowed each year. If the validation fails, Workday issues a warning or error and sets requests that are in error to a
Save for Later
status. Use report fields or create calculated fields to build rules. You can associate the same leave of absence rule with multiple leave types.
- Access theCreate Leave of Absence Ruletask.
- Enter theDescription, which Workday displays in the validation warning or error message.
- As you complete the task, consider:FieldDescriptionSource External Field or Condition RuleSelect a report field or calculated field.Fields available are based on these business objects:
- Worker
- Leave Request Event
- Leave Type
- Position
For eligibility rules, select fields based on theWorkerorPositionbusiness object only, as Workday applies these rules before the leave type or event information is known.Pay attention to names and descriptions when selecting values. Example:Worker, Job,Primary Job, andAcross Jobsindicate whether a field resolves for a worker, a worker's primary job, or all jobs. In general, when a field related to a position is called from a worker-based leave type, it resolves based on the primary position. If called from a position-based leave type, it resolves based on the applicable position.Relational OperatorThe type of report field or calculated field determines available options.Comparison TypeSpecify whether to compare the source to another field or to a value you enter.Comparison ValueSelect a comparison field or enter the value to compare to the source.OrderUse this column to control the processing order for the statements. - When 2 or more rows exist, set theAndorOroption at the beginning of each statement to control how the statement is used with the line above.All conditions in an expression connected byAndmust be true for the expression to be true. Any of the conditions in an expression connected byOrcan be true for the expression to be true.
- Use the parentheses columns when you've 3 or more rows and a combination of Ands and Ors.Example: To have (a and b) or c, use:
- The opening parenthesis at the beginning of statement a.
- Andbefore statement b
- The closing parenthesis at the end of statement b.
- Orat the beginning of statement c.
- ClickOK.
- (Optional) Define a message to display in place of the rule description when the rule is used to validate leave requests:
- From the related actions menu of the rule select .
- Specify if the message begins withTextor a value from anExternal Field.
- Add rows to enter additional information for the message.Workday displays the concatenated text in validation error or warning messages.
When workers enter leave requests that exceed their leave balance, you want to display this message:
The leave balance for <leave type> is exceeded with this leave request. The leave balance prior to this request was <# of units>.
To configure the message, enter this message in the
Validation Message
section of the Configure Validation Message
page:
Text/External Field (Radio Button) | Entry |
|---|---|
Text | The leave balance for
|
External Field | Leave Type (report field based on Leave Request Event) |
Text | is exceeded with this leave request.
|
Text | The leave balance prior to this request was
|
External Field | Outstanding Leave Balance for Leave Type this Balance Year (Prior to Current Leave) (report field based on Coordinated Leave/Time Off) |
External Field | Unit of Time for Leave Tracking (report field based on Leave Request Event) |
Text | . (dot or period character) |
After you define leave of absence rules, you can:
- Use theCreate Leave TypeorEdit Leave Typetask to associate the rules with leave types, either as additional eligibility criteria or to perform data entry validation.
- Review the rules using theView Leave of Absence Rulereport or theAll Condition Rulesreport.When accessing theAll Condition Rulesreport, selectLeave of Absence Ruleas a filter.