Configure the ProjectMessageJob job in the schedule.xml file

By default, bulletin board messages are enabled in the IXIASOFT CCMS Scheduler, but you can change how often the job is executed and the template used to generate the email.

To configure the ProjectMessageJob job:

  1. Open the %SchedulerDir%/conf/schedule.xml file.
  2. Look for the ProjectMessageJob default job; it looks as follows:
    <job useClass="com.ixiasoft.cms.postman.jobs.ProjectMessageJob" enable="true" >
       <schedule>
          <when>*/5 * * * *</when><!-- this will run every 5 minutes -->
       </schedule>
       <configuration>
          <property name="transform.xsl" value="project_Message.xsl"/>
       </configuration>
    </job>
  3. 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

  4. By default, the text sent in the email is specified in the project_Message.xsl template file. To specify a different email template, set the transform.xsl property to the name of the template file:
    For example:
    <configuration>
       <property name="transform.xsl" value="ACME_project_Message.xsl"/>
    </configuration>
    Note: Make sure that the template specified exists in the Content Store, in the Repository\system\scheduler\templates directory.
  5. When you are done, save and close the schedule.xml file.
  6. Restart the CCMS Scheduler service:
    • On Windows: Open the Services console, right-click Ixiasoft Scheduler and click Stop, and then right-click Ixiasoft Scheduler and click Start.
    • On Linux: Run the following commands:
      /sbin/service scheduler stop
      /sbin/service scheduler start