Configure the DailyReminder job in the schedule.xml file

To configure the reminder notifications, you configure the job in the schedule.xml file.

You have two options to configure the connection to the Content Store:
  • Use the default connection settings configured in the <configuration> element.
  • Configure a Content Store that is specific to a Scheduler job. This option is recommended only if you want to run a Scheduler job using a Content Store other than the one defined in the <configuration> element. If the Content Store is the same you do not need to additionally configure the connection to the Content Store within a specific Scheduler job. The configuration will fall back to the default Content Store connection.

To configure the schedule.xml file:

  1. Open the %SchedulerDir%/conf/schedule.xml file.
  2. Locate the DailyReminder job as follows.
    For example:
    <job useClass="com.ixiasoft.cms.plugins.DailyReminder" enable="false">
    	<!-- You can add the tag  <textml>, <dita.out>, or <smtp/> to override the default value -->
    	<schedule>
    		<when>10 2 * * *</when><!-- The job will run at 2:10 am -->
    	</schedule>
    	<configuration>
    		<property name="transform.xsl" value="daily_reminder.xsl"/>
    	</configuration>
    </job>
    Note: Although the name of IXIA CCMS Scheduler job is DailyReminder, the reminder is not sent daily but according to the scheduled time.
  3. Change the value of enable to true.
    Note: The Scheduler job will not run if the enable value is set to false.
  4. Edit the <when> element to configure when the job will run.

    Use a crontab-like pattern, as shown below:

    <when>minute hour day month weekday</when>

    Where:

    • minute specifies the minutes (0-59) of the hour that the job will run; a value of * indicates that the job will run every minute
    • hour specifies the hours (0-23, 0=midnight) of the day that the job will run; a value of * indicates that the job will run every hour
    • day specifies the days (1-31) of the month that the job will run; a value of * indicates that the job will run every day
    • month specifies the months (1-12) of the year that the job will run; a value of * indicates that the job will run every month
    • weekday specifies the days (0-6, 0 = Sunday) of the week that the job will run; a value of * indicates that the job will run every day

    For example, to indicate that a job should run at midnight every day, enter the following:

    <when>0 0 * * *</when>

    To indicate that a job should run at 6:15 every day, enter the following:

    <when>15 6 * * *</when>

    There are other options that you can use. For example, to indicate that a job should run every 15 minutes, enter the following:

    <when>*/15 * * * *</when>

    For more information about all available Cron options, see the following URL:

    http://www.sauronsoftware.it/projects/cron4j/manual.php#p02

  5. To specify a custom email template, edit the value attribute for the property element. Replace the default value of daily_reminder.xsl with the name of the custom template checked into the Content Store.
    For example, if you had a custom email template called myEmailTemplate.xsl, you would edit the DailyReminder job as follows:
    <job useClass="com.ixiasoft.cms.plugins.DailyReminder" enable="true">
    	<!-- You can add the tag  <textml>, <dita.out>, or <smtp/> to override the default value -->
    	<schedule>
    		<when>10 2 * * *</when><!-- The job will run at 2:10 am -->
    	</schedule>
    	<configuration>
    		<property name="transform.xsl" value="myEmailTemplate.xsl"/>
    	</configuration>
    </job>
  6. When you are done, save and close the schedule.xml file.
  7. If the Scheduler service is running, stop and start it again to load the job.
    For example:
    systemctl restart OutputGenerator