Table of Contents

Notification - the start of identity's contract

This notification is a part of the Extras module.

The LRT ContractStartNotificationTask can sends an email notification to holders of a specified role, manager, owner of starting contract. The recipients of the notification can be modified in the LRT setup and the notification template can be modified as well.

There are three different notifications this LRT can send:

  1. notification sent a specified number of days before the start of identity's contract
  2. notification sent the day that identity's contract starts
  3. notification sent a specific number of days after the start of identity's contract

Each notification can use a different notification template (and must use a different topic).

Template

You can create your own template by modifying the stubs. You have these objects available:

Configuration of LRT

The LRT can be configred in multiple ways, so it can be used for example

Notes

Behavior for module version < 3.5.0

The task sends notifications exactly according to the number of days before/after the start of identity's contract. Therefore, the task must be scheduled to run every day. Also, the contracts must be created in IdM soon enough. If a new contract was created and its start was already set to e.g. a week ago, then the notification e.g. 3 days before the start of the contract would not be sent. The same holds for filtering by the accounts on systems - if a user doesn't have an account on the day of the start of the contract, then the notification wouldn't be sent that day and never afterwards.

Behaviour for >= 3.5.0

For all use cases below the notification will be send

First run will process all valid contracts, be carefull with the first run

New LRT ContractStartNotificationWithLookBackTask

Extrass version 4.8.0 you need IdM version 13.1.1 and 5.2.0 you need IdM 14.2.0 version. Extras contains recreated LRT ContractStartNotificationTask.

This new task send notifications to users with a specified role and optionally their contract manager or owner. ContractStartNotificationTask have same variables like this new task and same behaviour like it is described above. But different handling of historic contracts. The notification will inform them of their upcoming start date, which is a specified number of days away. In initial run notifications will only be sent for contracts with a start date exact as specified (today + daysBefore). In subsequent runs notifications will be sent for all contracts with start date less than or equal to today + datsBefore that have not yet been notified and are active. This ensures coverage for contracts created with past start dates or contracts that were missed due to task outages.

Swithching old LRT with new LRT. You need to replace the scheduled task ContractStartNotificationTask with the scheduled task ContractStartNotificationWithLookBackTask, using the same parameters. Make sure not to do this on the same day the original task was already executed, to prevent duplicate notifications from being sent.