# Setting up the schedule for alerts

Step 3 of setting up an alarm is configuring a schedule for when the alarm should be triggered.&#x20;

Setting up a schedule involves the following 3 sub-steps:

## 1. Define the schedule

In this step, we can define a fixed schedule for the alerts to be sent to the user.

1\.    To set up a schedule for alerts, select **Send this communication** and then select the number of times this notification is to be sent.

<figure><img src="https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FIC93nFvYDjLOBPyQNyCJ%2Fimage.png?alt=media&#x26;token=412e769b-b9d5-4968-8cc2-fa7124be89b8" alt=""><figcaption></figcaption></figure>

* On selecting **Once**, the field **Initiate this communication** is displayed where we need to select when we want to send out the notification.&#x20;
* To send out the notifications at regular intervals, select **Repeated**. On selecting **Repeated**, we will be asked to select the time duration after which we want to send out the notifications.&#x20;

2\.    In the **Initiate this communication** field, select the time duration after which we want to send out the notifications and choose if the sending of notifications is to be initiated on the date that the form is submitted or updated. We can even set the time after which we want to initiate the sending of notifications.&#x20;

<figure><img src="https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2Fxa4PW1z2R3nfJmou6WvB%2FDefine%20schedule.gif?alt=media&#x26;token=1b88c900-2a40-4df9-b01f-44725b026a35" alt=""><figcaption><p><em>Define Schedule</em></p></figcaption></figure>

{% hint style="info" %}
The alternative way to define a schedule for alerts is providing a CRON expression. A cron expression is a string comprising of a number of fields that represent the individual details of a schedule. For more information on CRON expressions, see <https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm>
{% endhint %}

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FgBbICnuYmKIQ7q9NpJjQ%2Fimage.png?alt=media\&token=5c4b19b4-d01d-4645-844f-258e6dc61b5d)

## 2. Trigger conditions

We can provide a condition for the alert such that the alert will be triggered only when the condition is met.

1\.    To configure a condition for the alarm trigger, under **Trigger Conditions**, click **Condition set.** The **Set Condition** screen is displayed.

2\.    Set the required condition and then click **Apply**.&#x20;

<figure><img src="https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FDHIyA1DBZ5mu7qDrLWz4%2Ftrigger%20conditions.gif?alt=media&#x26;token=b662f393-71bd-47e2-b04c-2eae228f1b62" alt=""><figcaption></figcaption></figure>

## 3. Stop conditions

We can provide a condition for the alert such that the system will stop sending alerts when the condition is met.

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2Fi8OT9QHt5cwijL7gxuZQ%2Fimage.png?alt=media\&token=3c79e673-0ff9-4ff8-999f-9815f2de1927)

1\.    To configure a condition for the alarm trigger, under **Stop Conditions**, click **Set condition.**

The **Set Condition** screen is displayed. You can set the condition in a similar manner as described in [**Trigger conditions**](#trigger-conditions).

2\.    To set up a fixed number for the alerts to be sent to the user, select **Define the total number of times the alarm should be triggered** and then enter the number of times that you want the alarm to be triggered.

3\.    To save the settings, at the bottom right of the screen, click **Next**.
