.. include:: /Includes.rst.txt .. _feature-1792255829: ==================== Feature: Automations ==================== Description =========== HR lets adsum send mails and in-app messages by itself: when an employee is created, changes into a state HR describes with conditions, or is due to leave, and on birthdays and work anniversaries. An automation reaches roles derived from the record (the employee, their manager on the day of sending, HR, the person who made the change), fixed employees and up to 10 fixed addresses, each with a mail of their own in their language. A template whose placeholders a recipient may not read is refused when it is saved, and a recipient who lost the rights since is skipped; birthdays reach others than the employee and HR only with the employee's consent. HR tries an automation against a record before it fires, follows every run in the run log and starts from ready-made automations for birthdays, anniversaries and newcomers. Messages leave only after the change was saved, never twice for the same event and never for imported data. Impact ====== The package web-vision/adsum-automations offers /api/v1/automations, /api/v1/automation-triggers, /api/v1/automation-runs, /api/v1/automation-tests and /api/v1/automation-presets, the notification type automation.message and the message AutomationExecuted. The core registers the triggers employee.created, employee.changed, employee.exitScheduled, employee.birthday and employee.workAnniversary, the recipient roles subjectEmployee, subjectManager, hr and actor, three presets, and offers the contracts EmployeeDates and ExternalMails; packages publish their own triggers through TriggerPublisher. .. index:: API, package:adsum-core, package:adsum-automations