A maintenance plan defines the rules for creating work packages. These rules include:
* when a work package generation should be createdscheduled
* which asset the work package belongs to
* which template work package is used
* how the template work package is copied
* how many days before the planned execution date the work package generation may be generatedscheduled
* how future planning dates are calculated
The actual maintenance work is not executed by the maintenance plan itself. The maintenance plan creates Maintenance Planning Orchestrator schedules replication jobs; a separate execution process runs these jobs to create work packages. These generated work packages are then used by users to execute and complete the maintenance work.
In MRO, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">MaintenancePlan</span> is the abstract base class for maintenance planning. It provides the common foundation for maintenance plans, but it is not intended to be used directly.
This includes, for example:
* when a work package generation should be createdscheduled
* which asset the work package should belong to
* how many days before the planned execution date the work package generation may be createdscheduled
* which template work package should be used
* which recurrence pattern should be used
* how referenced objects are handled
* what the target meta class of the generated work package should be
To generate a non-template work package, configure replication so that <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">ISTEMPLATE</span> is false on the result. The replication job does not clear this flag automatically. Linked work packages with <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">ISTEMPLATE</span> set are excluded from the plan’s related work package calculations, including open work package checks, recurrence counts, and planning and completion reference dates.
=== Generated Work Package ===
# A cyclic maintenance plan is created for this pump.
# The plan is configured with a monthly recurrence, an assigned asset, a template work package, and a replication configuration.
# When the plan becomes due, the system uses schedules a replication job to create . When executed, this job creates a new work package from the configured template work package.
# The generated work package is linked back to the maintenance plan via <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LK_MAINTENANCE_PLAN</span>.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LEAD_DAYS</span>
| Defines how many days before <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> the system may create the schedule work packagegeneration.
| Does not define the recurrence interval.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">EARLIEST_GENERATION_DATE</span>
| Defines the earliest date on which the maintenance plan may create a work packagegeneration may be scheduled.
| Calculated by the system.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PLAN_STATUS</span>
| Defines whether the maintenance plan is active or inactive.
| Only active plans are considered for automatic generationjob scheduling.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">AUTO_CREATE</span>
| Defines whether the system automatic job scheduling is allowed to automatically create work packagesenabled.| If disabled, no new replication job is automatically scheduled for the plan does not automatically create work packages.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span>
| Stores the most recent retained completion reference date of a generated work package linked to the maintenance plan; see <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> below.
| Especially relevant for completion-based scheduling.
|-
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LEAD_DAYS</span> ===
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LEAD_DAYS</span> defines how many days before <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> the system may create the schedule work packagegeneration.
This is used to create schedule work packages package generation before the actual planned execution date.
{| class="wikitable"
<div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;">
'''Note:''' <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LEAD_DAYS</span> does not define the recurrence interval. It only defines how early the work package generation may be generated scheduled before the planned execution date.
</div>
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">EARLIEST_GENERATION_DATE</span> is calculated by the system.
It defines the earliest date on which the maintenance plan may create a work packagegeneration may be scheduled.
<pre>
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
</pre>
Only positive <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LEAD_DAYS</span> values are subtracted; zero or negative values leave the date unchanged. If the year of <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> is less than 2000, the result is <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">default(DateTime)</span> instead.
Example:
The maintenance planning orchestrator searches for active plans where <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">EARLIEST_GENERATION_DATE</span> has been reached.
A plan can be considered for automatic work package generation job scheduling when:
<pre>
EARLIEST_GENERATION_DATE <= current dateand time
</pre>
If <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">EARLIEST_GENERATION_DATE</span> has not yet been reached, no work package new replication job is createdautomatically scheduled for the plan.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PLAN_STATUS</span> ===
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PLAN_STATUS</span> defines whether the maintenance plan is active or inactive.
Only active plans are considered for automatic work package generationjob scheduling. Inactive plans are ignored by the maintenance planning processorchestrator.
Typical values are:
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">AUTO_CREATE</span> ===
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">AUTO_CREATE</span> defines whether the system is allowed to automatically create work packages from schedule replication jobs for the maintenance plan.
If <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">AUTO_CREATE</span> is enabled, the maintenance planning orchestrator can create work packages schedule replication jobs once the plan is due.
If <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">AUTO_CREATE</span> is disabled, no new replication job is automatically scheduled for the plan does not automatically create work packages.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> ===
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> stores the date when highest of its existing value and the most recent generated completion dates of related non-template finished work package linked to the packages. For cyclic maintenance plan was completedplans, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_START_DATE</span> is an additional lower bound. The value is updated only when the resulting reference date is valid.
This property is especially important for completion-based scheduling.
|}
The system updates <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> when a generated work package is completed. In Completion-Based mode, relevant recurrence-setting changes also recalculate this reference during save; it can therefore use <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_START_DATE</span> before the first completion.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PRIORITY</span> ===
</pre>
Open work packages are generated non-template work packages linked to the maintenance plan where:
<pre>
<div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;">
'''Generation rule:''' A Automatic job scheduling is skipped while the maintenance plan does not create another work package while it still has an open generated non-template work package.
</div>
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_UNTIL_DATE</span>
| Optional end date for the recurrence.
| No further Used as an end boundary for calculating new occurrences are generated after this date.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span>
| Limits how many further next-date calculation based on the number of related non-template work packages can be created from the plan.| Further occurrences stop once Applies only to positive values; reaching the count is reacheddoes not clear the existing <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span>.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span>
<div style="border-left: 4px solid #d33; background-color: #fff5f5; padding: 10px 12px; margin: 12px 0;">
'''Problem:''' If <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE</span> is invalid and cannot be parsed, the cyclic maintenance plan is not valid and cannot create work packagesis not eligible for new automatic job scheduling.
</div>
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_START_DATE</span> defines when the recurrence pattern starts.
The For Calendar-Based scheduling, the recurrence rule is calculated from this date forward. In both scheduling modes, this date is also a lower bound for the planning or completion reference date.
Example:
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_UNTIL_DATE</span> is an optional end date for the recurrence.
If this date is valid and configured, no further occurrences are generated after this dateit is passed to the recurrence calculation as an end boundary.
This can be used to set an end boundary for maintenance plans that should only run until a certain daterecurrence calculation.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span> ===
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span> limits how many further next-date calculation based on the number of related non-template work packages can be created from the plan.
Example:
|}
When the number of related generated work packages reaches a positive <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span>is reached by the number of related non-template work packages, the system no longer calculates new occurrences for the plan. Finished and unfinished work packages are counted; values of zero or less impose no count limit.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span> ===
|-
| Completion-Based
| Future dates are calculated from the actual completion date of the previous generated work packagereference described under <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span>.
|}
In calendar-based scheduling, the system calculates <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> based on the recurrence rule and the relevant dates of existing generated work packages.
The system determines the highest of the existing <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span>, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_START_DATE</span>, and the relevant planned or dates of related non-template work packages: the finished date of generated for finished work packages linked to and the maintenance planplanned start for unfinished work packages. Then it uses the recurrence rule to calculate the next valid occurrence after that date.
This means the schedule continues according to the recurrence pattern.
If a work package is completed later than planned, the future schedule does not necessarily move with that calendar pattern is retained, but the completion datereference can move past one or more occurrences and cause them to be skipped.
=== Example: Calendar-Based Scheduling ===
<div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;">
'''Important:''' The plan waits for the generated An open non-template work package to be completedblocks new automatic job scheduling. Then the system calculates the Completion triggers next -date from the completion datecalculation; relevant recurrence-setting changes can also trigger calculation during save.
</div>
| Basis for <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span>
| Recurrence defined by <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE</span>
| Actual completion date of the previous generated work packageCompletion reference described under <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span>
|-
| Effect of late completion
| Future dates are not automatically shiftedThe calendar pattern is retained, but missed occurrences can be skipped
| Future dates move with the completion date
|-
* The plan follows the <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE</span> calendar pattern.
* Future dates are not automatically shifted just because a work package was completed The calendar pattern is retained, but latecompletion can change the next selected occurrence.
* <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> can be recalculated after planning updates.
* It is useful for fixed maintenance windows and legally or organizationally fixed inspection dates.
Characteristics:
* The plan waits for completionAn open non-template work package blocks new automatic job scheduling.
* The completion date is used as the basis for <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span>.
* If the work is completed late, the future schedule moves.
<pre>
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
</pre>
This value is recalculated during save when:
* <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> changes
* <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> is recalculated after planning or completion
* recurrence settings cause a new <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> to be calculated
For cyclic maintenance plans, this value is recalculated on every save.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> ===
For calendar-based scheduling, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> is calculated from the recurrence pattern and the highest relevant planned or finished date of related generated work packages.
For completion-based scheduling, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> is calculated from the completion date of the previous generated work packagereference described under <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span>.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> ===
<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> is updated by the system when a generated work package is completed.
It stores retains the latest completion date of a generated work package related to reference described in the maintenance plan<span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> section above.
This value is especially relevant for completion-based scheduling.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PLANNED_START</span> on Generated Work Packages ===
When the system generates a work package from a maintenance plan, it sets the generated work package’s <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PLANNED_START</span> to the maintenance plan’s <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span>at job execution. The scheduled job stores the plan identifier, not a snapshot of this date.
Example:
== Properties and Events That Trigger Recalculation ==
Property changes trigger recalculation during save. A new <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> is assigned only if recurrence calculation succeeds. If no further occurrence can be calculated, including when a positive <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span> is reached, the existing <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> is retained. These recurrence limits do not directly block job scheduling or execution.
{| class="wikitable" style="width: 100%;"
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE</span> changed
| Recalculates Attempts to recalculate <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> based on the new recurrence rule and selected <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span>.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_START_DATE</span> changed
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span> changed
| Checks whether the maximum number of generated work packages positive count limit for next-date calculation has already been reached.
|-
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span> changed
| Recalculates Attempts to recalculate <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> according to the selected scheduling mode.|-| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> changed| Attempts to recalculate <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> according to the selected scheduling mode.
|-
| Generated work package <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PLANNED_START</span> changed
|-
| Generated work package completed
| Updates <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span> and recalculates attempts to recalculate <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> according to <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span>see Generated Work Package Completed below.
|}
<pre>
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
</pre>
<pre>
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
</pre>
When <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE</span> changes, the recurrence pattern changes.
The system recalculates attempts to recalculate <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> based on the new recurrence rule and the selected <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span>.
After <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> is recalculated, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">EARLIEST_GENERATION_DATE</span> is recalculated as well.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span> Changed ===
When <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span> changes, the system checks whether the maximum number of generated work packages positive count limit for next-date calculation has already been reached.
If the number of related generated work packages is greater than or equal to <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">RRULE_COUNT</span>is positive and the number of related non-template work packages is greater than or equal to it, the system does not calculate further occurrences.
=== <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span> Changed ===
Changing to Calendar-Based means that the plan follows the calendar recurrence.
Changing to Completion-Based means that the plan calculates <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> from the completion of the previous generated work packagereference described under <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span>.
Because this changes the calculation logic, the system recalculates attempts to recalculate <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> according to the selected <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODE</span>.
If <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> changes, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">EARLIEST_GENERATION_DATE</span> is recalculated as well.
</pre>
The system updates <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LAST_DATE</span>. Then the system recalculates Completion-Based scheduling directly attempts to recalculate <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">NEXT_DATE</span> according to . Calendar-Based scheduling attempts recalculation during the subsequent plan save if <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">SCHEDULING_MODELAST_DATE</span>has changed.
For calendar-based scheduling:
=== When Is a Plan Ready to Create a Work Package? ===
A cyclic or round maintenance Automatic generation consists of job scheduling followed by later execution. The plan can create a validity, status, automatic generation, due-date, and open work package only if all required conditions are fulfilledchecks below apply before scheduling. The template and replication configuration must be present when the job executes.
{| class="wikitable" style="width: 100%;"
| Plan status
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">PLAN_STATUS == Active</span>
| Inactive plans are ignoredfor new automatic job scheduling.
|-
| Automatic generation
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">AUTO_CREATE</span> must be enabled.
| If disabled, no new replication job is automatically scheduled for the plan does not automatically create work packages.
|-
| Template work package
| Replication configuration
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LK_REPLICATION_CONFIG</span> must be set.
| Required to copy the template work packageat job execution; not checked before automatic job scheduling.
|-
| Earliest generation date
| <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">EARLIEST_GENERATION_DATE <= current dateand time</span>| The plan A new job may only generate be automatically scheduled once the earliest generation date has been reached.
|-
| Open work packages
| No open generated non-template work package may exist for the planwhen automatic scheduling is checked.| There must be no generated non-template work package linked via <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">LK_MAINTENANCE_PLAN</span> where <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">ORGA_STATUS != 100</span>.
|}
<div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;">
'''Generation rule:''' The open work package check prevents the system from creating multiple new automatic job scheduling while an open non-template work packages for the same maintenance planpackage exists. This check alone does not guarantee protection against multiple queued jobs or concurrent execution.
</div>
The standard replication job checks that the template and replication configuration are present, but does not repeat the plan validity, status, <span style="font-family: Consolas, 'Courier New', monospace; color: #202122; background-color: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; padding: 1px 4px; white-space: nowrap;">AUTO_CREATE</span>, due-date, or open work package checks during execution. Changing these settings must not be assumed to cancel an already scheduled job.
== Round Work Package Generation ==