Example of Purge Scheduler

Using the Purge Scheduler process, you can schedule a purge of specific enterprise.

You can specify the schedule name as PurgeScheduler in the CronSchedules.xml file. You can change the schedule name. In the Jobs node, one job per enterprise must be defined. If you have two enterprises, you need to specify two Job nodes.

A Job node can contain more than one job nodes. Each Job node must specify the Job class, the trigger expressions, and a JobPolicy type. The Job class for purge scheduler is com.tibco.mdm.purge.PurgeScheduler.

The following is the sample of the Purge Scheduler process:

<CronSchedules>
  <Schedule>
    <Name>PurgeScheduler</Name>
    <Jobs>
      <Job>
        <Name>JobForPurge</Name>
        <Triggers>
          <TriggerExpression>0 0 0 * * ?</TriggerExpression>
        </Triggers>
        <JobDetails>
          <Description>Purge Job class name of the job to be executed. when trigger is fired.</Description>
<JobDetailsClass>com.tibco.mdm.purge.PurgeScheduler</JobDetailsClass>
        </JobDetails>
        <ExecuteOnStartup>false</ExecuteOnStartup>
        <JobInput>
          <JobPolicyParser>
            <Description>This class is responsible to extract the data (RETENTION_UOM, RETENTION_UNITS and PURGE_OPTION_FORCE) and send them in map. should implement IRuleParser interface</Description>
<ParserClass>com.tibco.mdm.purge.PurgeJobPolicy</ParserClass>
          </JobPolicyParser>
        </JobInput>
      </Job>
    </Jobs>
  </Schedule>
</CronSchedules>