In this article in The Rules Series, we show how to configure the rules engine to use the Category action.
How the Category action works
Overview
The Category action works by allowing matches to be categorised, to then be recalled later for later action.
Configuration options
Name | Description | Data Type | Example value |
---|---|---|---|
Category | The name of the category to tag against the matches | Text | ordinary |
An example
Using our example, let’s look at how we can benefit from this action. A common use case might be to combine multiple conditions to a single pay type later on. In this case, we have a definition of ordinary hours that we use later for other conditions. In this case, we incorporate the two conditions at the start of the process, and then pay on those conditions at the very end.
In this example, the employee is paid ordinary hours for their weekday shifts, and paid Saturday hours for their Saturday shift (being part of a separate condition).
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 your preferred conditions, then in the Then section, choose the Category action
Configure the category that you want to tag the matches with
Save your pay rule version.
Comments
0 comments
Please sign in to leave a comment.