Skip to main content

How notifications work

HCM Cafe sends emails when things happen, such as a leave request waiting for approval or a payslip being published. Notifications has a tab for each part:

TabWhat it controls
DefinitionsWhich events send an email, to whom, and under what conditions.
TemplatesThe subject and body of each email.
Data tagsThe placeholders templates can use, such as the employee's name.
Scheduled remindersRegular reminder emails, such as days still to be regularized.
Email logsEvery email sent, with delivery status.
ProvidersThe mail server emails are sent from.
AuditChanges to notification settings.

How an email is produced​

  1. Something happens, for example a request is submitted. This is the event type.
  2. Each active definition for that event checks its condition rules. If they match, its recipient rules decide who gets the email: a fixed address, a data tag (such as the approver's email), a role, or a built-in resolver.
  3. The definition's template is filled in with data tags for each recipient.
  4. The email is sent through the active provider and recorded in Email logs.

Next steps​