Example
In this example, an entire alert configuration will be explained, starting from defining a trigger and ending at the complete alert.
The alert that is set up, will send a lunch break reminder email. The alert will only be triggered between 12:00 and 12:15 and will be sent twice, once around 12:00 and once again a few minutes later as a second reminder.
Defining a Trigger
This section is focused on technical owners. See Permissions & Roles for more information on the different roles.
As a start, an Ometa Framework Method is exposed, by creating a trigger for a method "Get Current Hour". When executed this method will give the current hour and minute.
Go to Master Data > Trigger Definitions. Here, the trigger is created by clicking New.

Enter a title and select an object, method, template and profile. Optionally, a description can be specified.

Save the form. The trigger is now available for alerts.
See the article on triggers for information on how to define other trigger types.
Creating the Action
Actions serve as a basis for defining Templates and contain a piece of functionality in the Ometa Framework that can be used as an alert. Actions can be managed in the 'Action Definitions' section under the 'Master Data' tab within Alert Management.
As a start, create a Send Email action, as described here.
Creating the Template
Before the alert can be set up, a templated designed for the alert needs to be created. Use the Send Email action which you just created.
Go to the Template Tab and click New.

Enter a title and select a preconfigured action. Optionally, a description can be specified.

After creating the template, enter the correct template fields.

Configuring an Alert
After the trigger and template have been created, the alert can be configured. To do this go to the Alerts tab and click New.

Enter the required fields. Optionally, a description can be specified. Make sure to pick the trigger we defined earlier and then click Save.

The alert is now configured, but this alert does not check the values nor does it have an action configured yet.
Rules
The trigger will be checked every 5 minutes and will simply return the current hour and minute. To make sure that the action is only executed during lunch time, rules can be added.
- Check if the current hour is 12
- Check if the current minute is between 0 and 15
With these rules, the execution of the action is limited between 12:00 and 12:15. Make sure to set the newly created alert as context by clicking the context setter.

On the rule overview, click New. Pick the Hour property, set the operator to equals (=) and enter 12 as value. This rule will check if the Hour property returned by the trigger equals 12.

Do the same for a rule checking that Minute is greater than or equal to 0 and less than or equal to 15. You should now have the following rules:
Actions
The trigger is now set up to only execute its actions if the current time is between 12:00 and 12:15, but no actions are configured yet. To add an action, make sure your alert is set as context.

On the action overview, click New. Enter all required fields. Optionally, a description can be specified. Make sure to select the Send Lunch Reminder template that was configured earlier.

Each trigger will have a set of context records, the output of that trigger. This output can be used in the action message.
After the action is saved, the alert is completely configured.
