Use Task Schedule Repetition Rules to make adjustments to a reconciliation schedule. For example, if you want to push reconciliations scheduled for Saturday to the following Monday, use a Task Schedule Repetition Rule.
Task Schedule Repetition Rules can be used to adjust schedules for both full and incremental reconciliations.
For information on how to select Task Schedule Repetition rules, see Editing Reconciliation Policies.
Upon completing a reconciliation job, the reconciler component checks for its next scheduled run time.
First, the reconciler looks at the default schedule to obtain its next run time. Next, the reconciler runs all applicable Task Schedule Repetition Rules to see if schedule adjustments needs to be made. If an adjustment is needed, the rule schedule overrides the default schedule for that reconciliation.
Task Schedule Repetition Rules cannot overwrite the default schedule. They can only override scheduled start times on a per-job basis.
This section describes the built-in Accept All Dates sample rule.
In a text editor, open ReconRules.xml, which is located in Identity Manager’s sample directory.
Search for the rule named SCHEDULING_RULE_ACCEPT_ALL_DATES.
In order for a rule to be listed in the TaskSchedule Repetition Rule drop-down menu (on the Edit Reconciliation Policy page), the rule’s subtype attribute must be set to SUBTYPE_TASKSCHEDULE_REPETITION_RULE:
<Rule subtype=’SUBTYPE_TASKSCHEDULE_REPETITION_RULE’ name=’SCHEDULING_RULE_ACCEPT_ALL_DATES’>
As noted previously, Task Schedule Repetition rules can modify the default reconciliation schedule.
The variable calculatedNextDate can either accept the next date, which is calculated in the default manner, or return a different date. As it is written in the sample rule, calculatedNextDate unconditionally accepts the default date, as shown in the following excerpt:
<RuleArgument name=’calculatedNextDate’/> <block> <ref>calculatedNextDate</ref> </block>
In To View the Accept All Dates Sample Rule, calculatedNextDate is initially set to the default scheduled time. If the next scheduled run date is a Saturday, then the rule schedules reconciliation to start at 10:00. If the next scheduled run date is not a Saturday, To View the Accept All Dates Sample Rule returns calculatedNextDate without making any time adjustments, and the default schedule is used.
For more information about creating custom rules for use in Identity Manager, see Chapter 5, Working with Rules, in Sun Identity Manager Deployment Reference.