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 theRequest Time Offbusiness process.
- Create aWeddingtime off type.
- Security:
- Business Process Administrationin System functional area.
- Manage: Business Process Definitionsin System functional area.
- Access theCreate Condition Ruletask.
- In theDescriptionfield, enter:Time off requests for weddings are limited to one day each.
- Define theRule Conditions.And/OrSource External Field or Condition RuleRelational OperatorComparison TypeComparison ValueANDTime Off Types for Time Off Eventany in the selection listValue specified in this filterWeddingANDTime Off Total Units - Daysgreater thanValue specified in this filter1
- Access theRequest Time Offbusiness process definition .
- From the related actions menu of the initiation step, select .
- Add theTime off requests for weddings are limited to one day eachRule.
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.