In this article in The Rules Series, we show how to configure the rules engine to combine conditions using Nested conditions.
How Nested conditions works
Overview
Nested conditions allows you to combine multiple conditions, and use a container (see How to: Combine conditions: Using any of, all of, or none of to group conditions ) to evaluate the conditions as a single condition.
An example:
In this example, we want to configure a condition that rewards employees for a late-finishing shift on weeknights.
combines all the following:
not linked to a leave request, and
all of the following nested conditions
the shifts is on days of the week:
Monday
|Tuesday
|Wednesday
|Thursday
|Friday
andthe shift has some portion between
10:00 pm
and11:59 pm
The action that we will take here is to pay the employee an additional payment for the hours worked between 10:00pm and 23:59pm Monday to Friday.
Instructions
Create a Pay Rule and Pay Rule Version. (see: How to: Create a new Global Pay Rule, and How to: Create a new Global Pay Rule Version for examples)
Navigate to edit the pay rule version, and expand the Rules
Configure a condition, the click + Nested Condition
Choose how you want to combine your conditions (
any of
|all of
|none of
) then choose the conditions you want to configureSave your pay rule version.
Comments
0 comments
Please sign in to leave a comment.