Changing the daily schedule for Visual Queries

You can change the time of day that i2 Analyze runs Visual Queries that are saved with alerting enabled. By default, these queries run once every 24 hours at 00:00 according to the server time.

About this task

If you follow this procedure in a deployment that provides high availability, you must complete each step on every Liberty server in your environment before you move to the next step.

Procedure

  1. Using a text editor, open the DiscoServerSettingsCommon.properties file. You can find this file in the following location: toolkit\configuration\fragments\opal-services\WEB-INF\classes.

  2. Edit the value of AlertScheduleTimeOfDay.

    The default value is 00:00. The required format is HH:mm. HH is the hour of the day in a 24-hour time format, 00 to 23; and mm is the number of minutes past the hour, 00 to 59.

  3. To ensure that the daily schedule value is implemented, check that the AlertScheduleExpression property is not enabled. For more information, see Creating a custom schedule for Visual Queries.

  4. Save and close the file.

Redeploy i2 Analyze to update the application with your changes:

  1. In a command prompt, navigate to the toolkit\scripts directory.

  2. Stop Liberty:

    setup -t stopLiberty
  3. Update the i2 Analyze application:

    setup -t deployLiberty
  4. Start Liberty:

    setup -t startLiberty

After you redeploy i2 Analyze, the Visual Queries that are saved with alerting enabled are run according to the updated daily schedule.