Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point schedule

Extension allowing the registration of schedules. This is similar to a cron job sending events. Note that contrary to UNIX cron there is an additional "seconds" field in the cron expression.

A scheduler definition contains information about what event is sent, when, and under what identity.

For instance :

    <schedule id="mySchedule">
        <username>Administrator</username>
        <event>myEvent</event>
        <eventCategory>default</eventCategory>
        <!-- Every first of the month at 3am -->
        <cronExpression>0 0 3 1 * ?</cronExpression>
    </schedule>

@see org.quartz.CronTrigger @see http://www.quartz-scheduler.org/docs/api/1.8.1/org/quartz/CronExpression.html @see http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html

Contribution Descriptor

Existing Contributions

  • nuxeo-core-cache-7.10-HF06.jar /OSGI-INF/transientstore-service.xml
    <extension point="schedule" target="org.nuxeo.ecm.core.scheduler.SchedulerService">
        <schedule id="transientStoreGC">
          <eventId>transientStoreGCStart</eventId>
          <eventCategory>default</eventCategory>
          <!-- cleanup every 15 minutes -->
          <cronExpression>0 0/15 * * * ?</cronExpression>
        </schedule>
      </extension>
  • nuxeo-core-event-7.10-HF07.jar /OSGI-INF/workmanager-config.xml
    <extension point="schedule" target="org.nuxeo.ecm.core.scheduler.SchedulerService">
        <schedule id="workManagerCleanup">
          <event>workManagerCleanup</event>
          <!-- cleanup every 5 minutes -->
          <cronExpression>0 0/5 * * * ?</cronExpression>
        </schedule>
      </extension>
  • nuxeo-core-storage-sql-7.10-HF07.jar /OSGI-INF/repo-softdelete-contrib.xml
    <extension point="schedule" target="org.nuxeo.ecm.core.scheduler.SchedulerService">
        <schedule id="softDeleteCleanup">
          <event>softDeleteCleanup</event>
          <!-- cleanup every 15 minutes -->
          <cronExpression>0 0/15 * * * ?</cronExpression>
        </schedule>
      </extension>