Example: Identify Primary Position for Time Off Approval
Illustrates how to add a condition rule with calculated fields on the
Request Time Off
business process to identify the worker's primary position and route the time off approval to the appropriate manager.Your company allows worker's to have multiple positions. When they request time off, they need to specify the position that the time off relates to. When workers have 2 positions, Workday can route the request to either the primary manager or non-primary manager. You plan to configure the
Request Time Off
business process so that Workday routes the approval step to the primary manager.
If you specify a
Routing Modifier
on the approval step, when workers have 2 positions, you can add a condition rule with calculated fields to identify the primary manager for routing. - Create a calculated field that looks up all positions for the worker on the time off event:
- Access theCreate Calculated Fieldtask.
- Enter these values and clickOK:FieldValueField NameLRV Worker All PositionsBusiness ObjectTime Off EventFunctionLookup Related Value
- Select these calculation values and clickOK:FieldValueLookup FieldWorkerReturn ValueAll Positions
- Create a calculated field that extracts the primary position from all of the worker's positions:
- ClickCreate Another Calculation.
- Enter these values and clickOK:FieldValueField NameEMI Primary Position from All PositionsBusiness ObjectTime Off EventFunctionExtract Multi-Instance
- Select these calculation values and clickOK:FieldValueSource FieldLRV Worker All PositionsConditionPrimary Job
- Create a calculated field that extracts the result from theEMI Primary Position from All Positionsfield.
- ClickCreate Another Calculation.
- Enter these values and clickOK:FieldValueField NameESI Primary Position from All PositionsBusiness ObjectTime Off EventFunctionExtract Single-Instance
- Enter these calculation values and clickOK:FieldValueSource FieldEMI Primary Position from All PositionsConditionAny is TrueSort FieldPosition
- Create a calculated field that looks up the result from theESI Primary Position from All Positionsfield.
- ClickCreate Another Calculation.
- Enter these values and clickOK:FieldValueField NameLRV Primary Position from All PositionsBusiness ObjectTime Off EventFunctionLookup Related Value
- Select these calculation values and clickOK:FieldValueLookup FieldESI Primary Position from All PositionsReturn ValuePosition
- Create a calculated field that checks whether the time off event contains a position value.
- ClickCreate Another Calculation.
- Enter these values and clickOK:FieldValueField NameTime Off Entry Position is not EmptyBusiness ObjectTime Off EntryFunctionTrue/False Condition
- Enter these calculation values and clickOK:FieldValueAnd/OrAndFieldPositionOperatoris not empty
- Create a calculated field that extracts the result from theTime Off Entry Position is not Emptycondition.
- ClickCreate Another Calculation.
- Enter these values and clickOK:FieldValueField NameESI Position from Time Off Event from Time Off EntryBusiness ObjectTime Off EventFunctionExtract Single-Instance
- Enter these values and clickOK:FieldValueSource FieldTime Off EntryConditionTime Off Entry Position is not EmptySort FieldPosition
- Create a calculated field that looks up the result of theESI Position from Time Off Event from Time Off Entryfield.
- ClickCreate Another Calculation.
- Enter these values and clickOK:FieldValueField NameLRV Position from Time Off Event from Time Off EntryBusiness ObjectTime Off EventFunctionLookup Related Value
- Select these calculation values, clickOK, andDone:FieldValueLookup FieldESI Position from Time Off Event from Time Off EntryReturn ValuePosition
- Edit theRequest Time Offbusiness process definition.
- From the related actions menu of the workflow step for the Approval step, select .
- In theDescriptiontext box, enterRoutes the time off approval to the manager for the primary position.
- Enter these rule conditions and clickOK.FieldValueAnd/OrAndSource External Field or Condition RuleLRV Primary Position from All PositionsRelational Operatorin the selection listComparison TypeValue from another fieldComparison ValueLRV Position from Time Off Event from Time Off Entry