Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:adm:notification_-_identity_s_last_contract_is_ending [2019/10/30 13:44] cirkval [Run the LRT] |
tutorial:adm:notification_-_identity_s_last_contract_is_ending [2021/04/28 10:32] cabelkal [Set up the Long running task (LRT) to notify owner of the contract] |
||
---|---|---|---|
Line 31: | Line 31: | ||
* the date of the end of the user's contract (String only) | * the date of the end of the user's contract (String only) | ||
* user's manager (full IdmIdentityDto) | * user's manager (full IdmIdentityDto) | ||
+ | * user (full IdmIdentityDto), | ||
===== Configure topics ===== | ===== Configure topics ===== | ||
Line 58: | Line 59: | ||
And finally, you can check the box and select whether the user's manager is to be notified as well. Only one manager will receive the notification! | And finally, you can check the box and select whether the user's manager is to be notified as well. Only one manager will receive the notification! | ||
+ | |||
+ | ===== Set up the Long running task (LRT) with technical identities ===== | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | Finally, we can set up the LRT. In the left menu, go to Settings> | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | You can specify how many days before the contract' | ||
+ | |||
+ | <note tip>The notification is sent x days before the end of the contract or sooner. This is useful if for some reason the LRT did not run one day, it will simply be sent the next day.</ | ||
+ | |||
+ | * You can select the role that the recipients of the notification will have assigned. You can only select one so if you need multiple ones, you have defined multiple LRTs. | ||
+ | * You can also check the box and select whether the user's manager is to be notified as well. Only one manager will receive the notification! | ||
+ | |||
+ | **There is also support for technical identities. There are two options:** | ||
+ | |||
+ | * If you provide prefix, then the task will look for username with this prefix (for identity whose contract is going to end). If some are found, then it sends the notification. | ||
+ | * If you select a role in "Code of the role used for technical identities" | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | The last option (Send invalid contracts) is if you want to send only valid users or all. The reason for putting this option to this setting is this case: Task did not run a couple of days and some users are already not valid. So it admin can decide if those identities will be sent too. | ||
+ | |||
+ | ===== Set up the Long running task (LRT) to notify owner of the contract ===== | ||
+ | |||
+ | <note important> | ||
+ | For notification of owner of the contract we can set up the LRT. In the left menu, go to Settings> | ||
+ | We check " | ||
+ | |||
+ | {{: | ||
+ | |||
===== Run the long running task (LRT) ===== | ===== Run the long running task (LRT) ===== | ||
Line 63: | Line 97: | ||
The last thing remaining is to run the LRT using the green arrow button. You can user CRON to plan when the LRT should be run. | The last thing remaining is to run the LRT using the green arrow button. You can user CRON to plan when the LRT should be run. | ||
- | <note important> | + | <note important> |
- | <note important> | + | <note important> |
+ | This is true even if the contract' |