Create EC Alerts and Notification using Business Rules

This blog will help you to set up EC Alerts and Notification using the Business Rule.

Alerts and Notification are useful when there is some employment information change. For example, manager gets an alert in ToDo list and an email notification before 30 days of employees contract end date. User can customize the email and todo message.

Supported HRIS elements you can get the saveAlert rule to check in IF condition are -:

You need to be both an Approver and a Cc Role, to receive both an Alert and Notification.

Step 4

Admin Tools -> Configure Business Rules , Create New Rule as below :

NOTE: Never configure your Alert rule with “IF = Always”. This will mean the rule will trigger EVERY time you save. Best Practice is to have at least 1 IF condition, similar to the one used in the example below, where the rule will only trigger when the value for the field changes. If the value does not change, an alert is not sent. The point here is that it will send an alert when you set the value the field time, and it will send an alert when you change the value. But you don’t want it to send an Alert every time you update the employee’s Job Information, which it will do if you don’t have any IF condition.

Please Note: The Code and Name fields when adding the Second Parameter of Alert are case sensitive and must be filled in as shown above.

b) Effective Date (Required) – Defines when the rule is triggered.
You can use Date Plus() function to define when the alert will be sent. If you wish for the alert to be triggered days before or after the Probation End date.(-10 means 10 days before)

c) Workflow Information (Required) – defines which workflow is assigned to this rule. The workflow defines which user gets an alert and/or a notification message as configured in step 3.

Note: Here, ‘Probation End Date’ is a field in the Job Information Portlet. This Alert is only triggered when a change is made to the ‘Probation End Date’ field, this stops multiple alerts from being sent.

If you are a customer, you will need to open a Support Incident to have the scheduled job created

Things to consider:

Alerts are triggered when the ‘IF’ condition of the business rule is meet when clicking save on the corresponding portlet.
The alert message is then triggered and waits statically in the system until the effective date is reached.
When the effective date is reached and the ‘EC Alerts and Notifications’ job in provisioning is ran the alerts are sent.

If you are setting up an EC Alert and Notification in your instance, please note, that the Alerts will only be triggered for changes made to the user information, which meet the criteria of your rule, from the day the rule is triggered on the corresponding Element. The alerts will not trigger for already existing data.

Workflows in conjunction with the EC Alerts and Notification feature, do not work the same as normal workflows.The expected behavior is as follows:
-CC Roles will receive only a Notification (email). Unlike normal CC roles, these emails will not appear in “Take Action” tile.
-Approves will receive an Alert (To Do Notification). In the new home page these alerts appear in the “Take Action” Tile.