Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Example: Limit the Length of Time Off Requests

Example: Limit the Length of Time Off Requests

This example shows you how to create a business process validation to limit the length of a time off request.
At Global Modern Services, workers are entitled to 1 day off at a time to attend a wedding. There are no limits to the number of weddings workers can attend in a year, but they are limited to 1 day per time off request.
  • Configure the
    Request Time Off
    business process.
  • Create a
    Wedding
    time off type.
  • Security:
    • Business Process Administration
      in System functional area.
    • Manage: Business Process Definitions
      in System functional area.
  1. Access the
    Create Condition Rule
    task.
  2. In the
    Description
    field, enter:
    Time off requests for weddings are limited to one day each
    .
  3. Define the
    Rule Conditions
    .
    And/Or
    Source External Field or Condition Rule
    Relational Operator
    Comparison Type
    Comparison Value
    AND
    Time Off Types for Time Off Event
    any in the selection list
    Value specified in this filter
    Wedding
    AND
    Time Off Total Units - Days
    greater than
    Value specified in this filter
    1
  4. Access the
    Request Time Off
    business process definition .
  5. From the related actions menu of the initiation step, select
    Business Process
    Maintain Step Conditions
    .
  6. Add the
    Time off requests for weddings are limited to one day each
    Rule
    .
When a worker tries to request more than 1 day off for the
Wedding
time off type, Workday displays an error message.
(Optional) Add a custom error message for this validation.