Example of Hierarchy Linkage Cleanup Scheduler

The hierarchy linkage cleanup scheduler job cleans the hierarchy record linkage data that is linked to the deleted records.

When you delete a record, record linkages are not automatically deleted from the hierarchy. To delete these record linkages, run the linkage cleanup scheduler job after you delete the record.

Sample of the hierarchy linkage cleanup scheduler process:
<Schedule>
        <Name>LinkageCleanupScheduler</Name>
        <Jobs>
            <Job>
                <Name>LinkageCleanup</Name>
                <Triggers>
                    <TriggerExpression>0 0 0 * * ?</TriggerExpression>
                </Triggers>
                <JobDetails>
                    <Description>Class name of the job to be executed when trigger is fired.</Description>
                    <JobDetailsClass>com.tibco.mdm.hm.scheduler.LinkagesCleanupScheduler</JobDetailsClass>
                </JobDetails>
                <JobInput>
			<!-- one or more hierarchy names separated by comma (,). ALL means all hierarchies. -->
			<JobInputParam name="HierarchyNames">Hierarchy1,Hierarchy2,Hierarchy3</JobInputParam>
			<JobInputParam name="EnterpriseName">ACME</JobInputParam>
		</JobInput>
		<ExecuteOnStartup>false</ExecuteOnStartup>
            </Job>
        </Jobs>
    </Schedule>  
The following table lists the input parameters that must be specified in the <JobInputParam> tag:
Input Parameters Description
HierarchyNames Specify a comma separated list of hierarchy names to delete linkage data in multiple hierarchies.
EnterpriseName Specify an enterprise name in which the hierarchy is created.

Limitation

Scheduling the hierarchy lock expiry and linkage cleanup jobs using the Configurator is not supported.