Difference between revisions of "MROMaintenancePlans"
(Created page with "{{UnderConstructionStart}} == MRO Maintenance Planning == The Maintenance Planning feature in MRO is used to plan recurring maintenance work and automatically generate work p...") |
|||
| (9 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | = MRO Maintenance Planning = | |
| − | + | ||
| − | The Maintenance Planning feature in MRO is used to plan recurring maintenance work and automatically generate work packages from maintenance plans. | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Summary:''' The Maintenance Planning feature in MRO is used to plan recurring maintenance work and automatically generate work packages from maintenance plans. The maintenance plan defines the rules. The generated work package is used by users to execute and complete the actual maintenance work. | ||
| + | </div> | ||
| − | + | == Overview == | |
| − | + | A maintenance plan defines the rules for creating work packages. These rules include: | |
| − | In MRO, MaintenancePlan 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 | + | * when work package generation should be scheduled |
| + | * 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 work package generation may be scheduled | ||
| + | * how future planning dates are calculated | ||
| + | |||
| + | The actual maintenance work is not executed by the maintenance plan itself. The 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. | ||
The fully implemented maintenance plan types in standard MRO are: | The fully implemented maintenance plan types in standard MRO are: | ||
| − | * CyclicMaintenancePlan | + | * <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;">CyclicMaintenancePlan</span> |
| − | * RoundMaintenancePlan | + | * <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;">RoundMaintenancePlan</span> |
| − | Custom maintenance plan types can be implemented by deriving from the abstract MaintenancePlan base class. However, the standard MRO maintenance planning feature is based on cyclic maintenance plans and round maintenance plans. | + | Custom maintenance plan types can be implemented by deriving from the abstract <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> base class. However, the standard MRO maintenance planning feature is based on cyclic maintenance plans and round maintenance plans. |
| − | CyclicMaintenancePlan and RoundMaintenancePlan support recurrence-based scheduling. This includes planned execution dates, automatic work package generation, calendar-based scheduling, completion-based scheduling, automatic recalculation of scheduling dates, and generation based on due dates. | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Important:''' <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;">CyclicMaintenancePlan</span> and <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;">RoundMaintenancePlan</span> support recurrence-based scheduling. This includes planned execution dates, automatic work package generation, calendar-based scheduling, completion-based scheduling, automatic recalculation of scheduling dates, and generation based on due dates. | ||
| + | </div> | ||
| − | RoundMaintenancePlan additionally supports maintenance rounds. A round maintenance plan creates one main work package for the round. It can also create additional work packages from child maintenance plans linked via SYSREL_ROUND_RELATION. These additional work packages are assigned to the main round 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;">RoundMaintenancePlan</span> additionally supports maintenance rounds. A round maintenance plan creates one main work package for the round. It can also create additional work packages from child maintenance plans 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;">SYSREL_ROUND_RELATION</span>. These additional work packages are assigned to the main round work package. |
| − | == Basic | + | == Basic Concept == |
The maintenance planning feature is built around four main parts: | The maintenance planning feature is built around four main parts: | ||
| − | + | {| class="wikitable" style="width: 100%;" | |
| − | + | ! Part | |
| − | + | ! Description | |
| − | + | |- | |
| + | | <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> | ||
| + | | Defines the rules for creating generated work packages. | ||
| + | |- | ||
| + | | Template work package | ||
| + | | Defines what the generated work package should look like. | ||
| + | |- | ||
| + | | Replication configuration | ||
| + | | Defines how the template work package is copied. | ||
| + | |- | ||
| + | | Generated work package | ||
| + | | The actual work package created by the maintenance plan. | ||
| + | |} | ||
| − | === Maintenance | + | === Maintenance Plan === |
The maintenance plan defines the rules for creating work packages. | The maintenance plan defines the rules for creating work packages. | ||
| Line 36: | Line 60: | ||
This includes, for example: | This includes, for example: | ||
| − | * when | + | * when work package generation should be scheduled |
* which asset the work package should belong to | * which asset the work package should belong to | ||
| − | * how many days before the planned execution date | + | * how many days before the planned execution date work package generation may be scheduled |
* which template work package should be used | * which template work package should be used | ||
* which recurrence pattern should be used | * which recurrence pattern should be used | ||
* whether future dates are calculated calendar-based or completion-based | * whether future dates are calculated calendar-based or completion-based | ||
| − | === Template | + | === Template Work Package === |
The template work package defines what the generated work package should look like. | The template work package defines what the generated work package should look like. | ||
| − | + | It is the source work package that is copied when the maintenance plan creates a new work package. | |
| − | Only work packages with ISTEMPLATE set can be used as template work packages. | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Rule:''' Only 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 can be used as template work packages. | ||
| + | </div> | ||
| − | === Replication | + | === Replication Configuration === |
The replication configuration defines how the template work package is copied. | The replication configuration defines how the template work package is copied. | ||
| − | This includes, for example | + | This includes, for example: |
| − | == | + | * which properties are copied |
| + | * 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 === | ||
The generated work package is the actual result created by the maintenance plan. | The generated work package is the actual result created by the maintenance plan. | ||
| Line 63: | Line 95: | ||
Example: | Example: | ||
| − | A pump has to be inspected every month. | + | # A pump has to be inspected every month. |
| + | # 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 schedules a replication job. 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>. | ||
| − | + | This link allows the maintenance plan to react when the generated work package is planned or completed. | |
| − | + | == MaintenancePlan Base Class == | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | == MaintenancePlan | + | |
=== Purpose === | === Purpose === | ||
| − | MaintenancePlan is the abstract base class for maintenance planning 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 in MRO. |
| − | It provides the common properties and logic | + | It provides the common properties and logic required by maintenance plan implementations. |
| − | Because MaintenancePlan is abstract, users do not create or use this base class directly in the standard MRO feature. | + | Because <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 abstract, users do not create or use this base class directly in the standard MRO feature. Instead, the concrete maintenance plan types are used: |
| − | + | * <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;">CyclicMaintenancePlan</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;">RoundMaintenancePlan</span> | |
| − | + | ||
| − | * RoundMaintenancePlan | + | |
Developers can derive from the abstract base class if a project requires a custom maintenance plan type. In that case, the custom implementation must provide the missing plan-specific behavior. | Developers can derive from the abstract base class if a project requires a custom maintenance plan type. In that case, the custom implementation must provide the missing plan-specific behavior. | ||
| − | === LK_ASSET === | + | === Base Class Properties === |
| + | |||
| + | {| class="wikitable" style="width: 100%;" | ||
| + | ! Property | ||
| + | ! Purpose | ||
| + | ! Notes | ||
| + | |- | ||
| + | | <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_ASSET</span> | ||
| + | | Links the maintenance plan to the asset that requires maintenance. | ||
| + | | Required for a valid cyclic 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;">LK_WP_TMPL</span> | ||
| + | | Links the maintenance plan to the template work package. | ||
| + | | The linked work package must have <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. | ||
| + | |- | ||
| + | | <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> | ||
| + | | Links the maintenance plan to the replication configuration. | ||
| + | | Required for work package 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;">NEXT_DATE</span> | ||
| + | | Defines the planned execution date of the next maintenance activity. | ||
| + | | Used as <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. | ||
| + | |- | ||
| + | | <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 schedule work package generation. | ||
| + | | 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 work package generation 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 job 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 automatic job scheduling is enabled. | ||
| + | | If disabled, no new replication job is automatically 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;">LAST_DATE</span> | ||
| + | | Stores the retained completion reference date; 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;">PRIORITY</span> | ||
| + | | Numeric value that can be used to sort maintenance plans. | ||
| + | | For round maintenance plans, see also <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_SELECTION_RULE</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;">LK_ASSET</span> === | ||
| − | LK_ASSET is the link to the asset that requires maintenance. | + | <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_ASSET</span> is the link to the asset that requires maintenance. |
This can be, for example: | This can be, for example: | ||
| Line 96: | Line 174: | ||
* equipment | * equipment | ||
* a functional location | * a functional location | ||
| − | * another customized maintainable object deriving from Asset | + | * another customized maintainable object deriving from <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;">Asset</span> |
The generated work package is linked to the same asset. | The generated work package is linked to the same asset. | ||
| − | A cyclic maintenance plan requires LK_ASSET to be assigned in order to be valid. | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Requirement:''' A cyclic maintenance plan requires <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_ASSET</span> to be assigned in order to be valid. | ||
| + | </div> | ||
| − | === LK_WP_TMPL === | + | === <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_WP_TMPL</span> === |
| − | LK_WP_TMPL is the link to the template 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;">LK_WP_TMPL</span> is the link to the template work package. |
The template work package defines what the generated work package should look like. | The template work package defines what the generated work package should look like. | ||
| − | When the maintenance plan creates a work package, the system copies the work package referenced by LK_WP_TMPL. | + | When the maintenance plan creates a work package, the system copies the work package referenced 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;">LK_WP_TMPL</span>. |
| − | The linked work package must be a template work package. This means its ISTEMPLATE property must be set. | + | The linked work package must be a template work package. This means its <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> property must be set. |
| − | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> | |
| + | '''Requirement:''' <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_WP_TMPL</span> must be configured before the maintenance plan can create a work package. | ||
| + | </div> | ||
| − | === LK_REPLICATION_CONFIG === | + | === <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> === |
| − | LK_REPLICATION_CONFIG is the link to the 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> is the link to the replication configuration. |
The replication configuration defines how the template work package is copied into a generated work package. | The replication configuration defines how the template work package is copied into a generated work package. | ||
| Line 126: | Line 208: | ||
* what the target meta class of the generated work package should be | * what the target meta class of the generated work package should be | ||
| − | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> | |
| + | '''Requirement:''' <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 configured before the maintenance plan can create a work package. | ||
| + | </div> | ||
| − | === NEXT_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;">NEXT_DATE</span> === |
| − | NEXT_DATE defines the planned execution date of the next maintenance activity. | + | <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> defines the planned execution date of the next maintenance activity. |
| − | It answers the question: When should the next maintenance work be performed? | + | It answers the question: '''When should the next maintenance work be performed?''' |
| − | NEXT_DATE is not necessarily the date on which the work package is created. | + | <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 not necessarily the date on which the work package is created. |
| − | Example | + | {| class="wikitable" |
| − | + | ! Value | |
| − | + | ! 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;">NEXT_DATE</span> | |
| + | | 15 March | ||
| + | |- | ||
| + | | <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> | ||
| + | | 3 | ||
| + | |- | ||
| + | | <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> | ||
| + | | 12 March | ||
| + | |} | ||
In this example, the system may create the work package on 12 March, but the generated work package is planned for 15 March. | In this example, the system may create the work package on 12 March, but the generated work package is planned for 15 March. | ||
| − | When a work package is generated, the generated work package receives the maintenance plan’s NEXT_DATE as its PLANNED_START. | + | When a work package is generated, the generated work package receives 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> as its <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>. |
| − | === LEAD_DAYS === | + | === <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> === |
| − | LEAD_DAYS defines how many days before NEXT_DATE the system may | + | <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 schedule work package generation. |
| − | This is used to | + | This is used to schedule work package generation before the actual planned execution date. |
| − | Example: | + | {| class="wikitable" |
| + | ! Value | ||
| + | ! 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;">NEXT_DATE</span> | ||
| + | | 15 March | ||
| + | |- | ||
| + | | <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> | ||
| + | | 3 | ||
| + | |- | ||
| + | | Resulting <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> | ||
| + | | 12 March | ||
| + | |} | ||
| − | + | <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 work package generation may be 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> === | |
| − | + | <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 work package generation may be scheduled. | |
| − | LEAD_DAYS | + | <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: | |
| − | + | {| class="wikitable" | |
| + | ! Value | ||
| + | ! 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;">NEXT_DATE</span> | ||
| + | | 15 March | ||
| + | |- | ||
| + | | <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> | ||
| + | | 3 | ||
| + | |- | ||
| + | | <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> | ||
| + | | 12 March | ||
| + | |} | ||
| − | The | + | 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 job scheduling when: | |
| − | + | <pre> | |
| + | EARLIEST_GENERATION_DATE <= current date and 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 new replication job is automatically 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 job scheduling. Inactive plans are ignored by the maintenance planning orchestrator. | |
| − | + | 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;">Inactive</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;">Active</span> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
This allows users to temporarily disable a maintenance plan without deleting it. | This allows users to temporarily disable a maintenance plan without deleting it. | ||
| − | + | === <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 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 schedule replication jobs once the plan is due. |
| − | AUTO_CREATE | + | 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. |
| − | + | === <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 highest of its existing value and the completion dates of related non-template finished work packages. For cyclic maintenance plans, <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. | This property is especially important for completion-based scheduling. | ||
| − | + | {| class="wikitable" | |
| + | ! Value | ||
| + | ! Example | ||
| + | |- | ||
| + | | Previous generated work package completed | ||
| + | | 20 March | ||
| + | |- | ||
| + | | <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 | ||
| + | |- | ||
| + | | Next date is calculated from | ||
| + | | 20 March | ||
| + | |} | ||
| − | + | 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> === | |
| − | + | ||
| − | + | ||
| − | + | <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> is a numeric value that can be used to sort maintenance plans. | |
| − | = | + | For round maintenance plans, there is also a property called <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_SELECTION_RULE</span>. |
| − | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> | |
| + | '''Open point:''' The exact effect 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;">PLAN_SELECTION_RULE</span> should only be documented after the implementation behavior has been verified. | ||
| + | </div> | ||
| − | + | == Work Package Properties Used by Maintenance Planning == | |
| − | == | + | {| class="wikitable" style="width: 100%;" |
| + | ! Property | ||
| + | ! Used on | ||
| + | ! Purpose | ||
| + | |- | ||
| + | | <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> | ||
| + | | Generated work package | ||
| + | | Links the generated work package back to the maintenance plan that triggered its creation. | ||
| + | |- | ||
| + | | <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_WP_TMPL</span> | ||
| + | | Generated work package | ||
| + | | Stores the template work package that was used to create the 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;">LK_ASSET</span> | ||
| + | | Generated work package | ||
| + | | Stores the asset for which the work package was created. | ||
| + | |- | ||
| + | | <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> | ||
| + | | Generated work package | ||
| + | | Stores the planned start date of the 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;">ORGA_STATUS</span> | ||
| + | | Generated work package | ||
| + | | Used to determine whether a generated work package is finished. | ||
| + | |- | ||
| + | | <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;">TASK_OWNER</span> | ||
| + | | Additional round work package | ||
| + | | Assigns additional generated work packages to the main round 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;">ORDERID</span> | ||
| + | | Additional round work package | ||
| + | | Can be copied from <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;">SYSREL_ROUND_RELATION</span> to structure or order round 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;">GROUPID</span> | ||
| + | | Additional round work package | ||
| + | | Can be copied from <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;">SYSREL_ROUND_RELATION</span> to group round work packages. | ||
| + | |} | ||
| − | === LK_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;">LK_MAINTENANCE_PLAN</span> === |
| − | LK_MAINTENANCE_PLAN is set on generated 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;">LK_MAINTENANCE_PLAN</span> is set on generated work packages. |
It stores the maintenance plan that triggered the creation of the work package. | It stores the maintenance plan that triggered the creation of the work package. | ||
| − | This is important because the maintenance plan itself does not directly store a list of generated work packages. Instead, generated work packages reference their source maintenance plan via LK_MAINTENANCE_PLAN. | + | This is important because the maintenance plan itself does not directly store a list of generated work packages. Instead, generated work packages reference their source 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>. |
This link allows the system to find work packages created from a maintenance plan and to update the maintenance plan when a generated work package is planned or completed. | This link allows the system to find work packages created from a maintenance plan and to update the maintenance plan when a generated work package is planned or completed. | ||
| − | === LK_WP_TMPL === | + | === <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_WP_TMPL</span> === |
| − | On a generated work package, LK_WP_TMPL stores the template work package that was used to create the generated work package. | + | On a 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;">LK_WP_TMPL</span> stores the template work package that was used to create the generated work package. |
This allows users and the system to see which template was used as the source. | This allows users and the system to see which template was used as the source. | ||
| − | === LK_ASSET === | + | === <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_ASSET</span> === |
| − | On a generated work package, LK_ASSET stores the asset for which the work package was created. | + | On a 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;">LK_ASSET</span> stores the asset for which the work package was created. |
| − | This is usually copied or assigned based on the maintenance plan’s LK_ASSET. | + | This is usually copied or assigned based on 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;">LK_ASSET</span>. |
| − | === PLANNED_START === | + | === <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> === |
| − | PLANNED_START stores the planned start date of the 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> stores the planned start date of the generated work package. |
When a maintenance plan generates a work package, the system sets: | When a maintenance plan generates a work package, the system sets: | ||
| + | <pre> | ||
generated WorkPackage.PLANNED_START = MaintenancePlan.NEXT_DATE | generated WorkPackage.PLANNED_START = MaintenancePlan.NEXT_DATE | ||
| + | </pre> | ||
| − | === ORGA_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;">ORGA_STATUS</span> === |
| − | ORGA_STATUS is used to determine whether a generated work package is finished. | + | <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</span> is used to determine whether a generated work package is finished. |
A work package is considered finished when: | A work package is considered finished when: | ||
| + | <pre> | ||
ORGA_STATUS == 100 | ORGA_STATUS == 100 | ||
| + | </pre> | ||
| + | |||
| + | Open work packages are non-template work packages linked to the maintenance plan where: | ||
| − | + | <pre> | |
| + | ORGA_STATUS != 100 | ||
| + | </pre> | ||
| − | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> | |
| + | '''Generation rule:''' For Completion-Based scheduling, automatic job scheduling is skipped while the maintenance plan has an open non-template work package. Open work packages do not block Calendar-Based scheduling. | ||
| + | </div> | ||
| − | === TASK_OWNER === | + | === <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;">TASK_OWNER</span> === |
| − | TASK_OWNER is used in round maintenance scenarios. | + | <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;">TASK_OWNER</span> is used in round maintenance scenarios. |
| − | When a round maintenance plan creates a main work package and additional work packages from linked child plans, the additional work packages are assigned to the main round work package via TASK_OWNER. | + | When a round maintenance plan creates a main work package and additional work packages from linked child plans, the additional work packages are assigned to the main round work package 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;">TASK_OWNER</span>. |
| − | === ORDERID and GROUPID === | + | === <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;">ORDERID</span> and <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;">GROUPID</span> === |
| − | ORDERID and GROUPID can be copied from the SYSREL_ROUND_RELATION relation to generated work packages in a round maintenance scenario. | + | <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;">ORDERID</span> and <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;">GROUPID</span> can be copied from 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;">SYSREL_ROUND_RELATION</span> relation to generated work packages in a round maintenance scenario. |
They can be used to order or group the additional work packages that belong to the generated round work package. | They can be used to order or group the additional work packages that belong to the generated round work package. | ||
| Line 294: | Line 461: | ||
=== Purpose === | === Purpose === | ||
| − | A CyclicMaintenancePlan is used for recurring maintenance work on an asset. | + | A <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;">CyclicMaintenancePlan</span> is used for recurring maintenance work on an asset. |
It is the standard maintenance plan type for maintenance activities that repeat according to a defined recurrence pattern. | It is the standard maintenance plan type for maintenance activities that repeat according to a defined recurrence pattern. | ||
| Line 306: | Line 473: | ||
* perform annual maintenance on a functional location | * perform annual maintenance on a functional location | ||
| − | A cyclic maintenance plan uses RRULE to define the recurrence. It also uses SCHEDULING_MODE to define how future dates are calculated. | + | A cyclic maintenance plan uses <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> to define the recurrence. It also uses <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> to define how future dates are calculated. |
| − | SCHEDULING_MODE | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Key concept:''' <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> defines whether the plan follows fixed calendar dates or whether the next date depends on the actual completion date of the previous generated work package. | ||
| + | </div> | ||
The supported scheduling modes are: | The supported scheduling modes are: | ||
| Line 315: | Line 484: | ||
* Completion-Based | * Completion-Based | ||
| − | == CyclicMaintenancePlan | + | == CyclicMaintenancePlan Properties == |
| − | === RRULE === | + | {| class="wikitable" style="width: 100%;" |
| + | ! Property | ||
| + | ! Purpose | ||
| + | ! Notes | ||
| + | |- | ||
| + | | <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> | ||
| + | | Defines the recurrence pattern. | ||
| + | | Must be valid and parseable. | ||
| + | |- | ||
| + | | <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. | ||
| + | | Used as the start point for recurrence 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_UNTIL_DATE</span> | ||
| + | | Optional end date for the recurrence. | ||
| + | | Used as an end boundary for calculating new 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;">RRULE_COUNT</span> | ||
| + | | Limits further next-date calculation based on the number of related non-template work packages. | ||
| + | | Applies only to positive values; reaching the count does 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> | ||
| + | | Defines how <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. | ||
| + | | Supports Calendar-Based and Completion-Based scheduling. | ||
| + | |} | ||
| − | RRULE defines the recurrence pattern of a cyclic 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;">RRULE</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</span> defines the recurrence pattern of a cyclic maintenance plan. | ||
It describes how often the maintenance should occur. | It describes how often the maintenance should occur. | ||
| Line 325: | Line 520: | ||
Examples: | Examples: | ||
| + | <pre> | ||
FREQ=DAILY | FREQ=DAILY | ||
| − | |||
FREQ=WEEKLY;BYDAY=MO,WE,FR | FREQ=WEEKLY;BYDAY=MO,WE,FR | ||
| − | |||
FREQ=MONTHLY;BYMONTHDAY=15 | FREQ=MONTHLY;BYMONTHDAY=15 | ||
| + | </pre> | ||
| − | The system uses RRULE to calculate future planned execution dates. | + | The system uses <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> to calculate future planned execution dates. |
| − | If RRULE is invalid and cannot be parsed, the cyclic maintenance plan is not valid and | + | <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 is not eligible for new automatic job scheduling. | ||
| + | </div> | ||
| − | === RRULE_START_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_START_DATE</span> === |
| − | RRULE_START_DATE defines when the recurrence pattern starts. | + | <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. |
| − | + | 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: | Example: | ||
| − | + | {| class="wikitable" | |
| − | + | ! Setting | |
| + | ! Value | ||
| + | |- | ||
| + | | <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> | ||
| + | | 01 January | ||
| + | |- | ||
| + | | <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> | ||
| + | | Monthly on the 15th | ||
| + | |} | ||
The system uses these values to determine valid planned execution dates. | The system uses these values to determine valid planned execution dates. | ||
| − | === RRULE_UNTIL_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_UNTIL_DATE</span> === |
| − | RRULE_UNTIL_DATE is an optional end date for the recurrence. | + | <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 configured, | + | If this date is valid and configured, it is passed to the recurrence calculation as an end boundary. |
| − | This can be used for | + | This can be used to set an end boundary for recurrence calculation. |
| − | === RRULE_COUNT === | + | === <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> === |
| − | RRULE_COUNT limits | + | <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 further next-date calculation based on the number of related non-template work packages. |
Example: | Example: | ||
| − | + | {| class="wikitable" | |
| + | ! Setting | ||
| + | ! Value | ||
| + | |- | ||
| + | | <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> | ||
| + | | 10 | ||
| + | |} | ||
| − | When the number of related | + | 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 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. Reaching the limit also blocks new automatic job scheduling in both scheduling modes. |
| − | === 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;">SCHEDULING_MODE</span> === |
| − | SCHEDULING_MODE defines how NEXT_DATE is calculated for a cyclic 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;">SCHEDULING_MODE</span> defines how <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 for a cyclic maintenance plan. |
| − | SCHEDULING_MODE is only relevant for concrete maintenance plan types that use recurrence logic, such as CyclicMaintenancePlan and RoundMaintenancePlan. | + | <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> is only relevant for concrete maintenance plan types that use recurrence logic, such as <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;">CyclicMaintenancePlan</span> and <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;">RoundMaintenancePlan</span>. |
The supported scheduling modes are: | The supported scheduling modes are: | ||
| − | + | {| class="wikitable" | |
| − | + | ! Scheduling mode | |
| + | ! Description | ||
| + | |- | ||
| + | | Calendar-Based | ||
| + | | Future dates follow the recurrence pattern 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>. | ||
| + | |- | ||
| + | | Completion-Based | ||
| + | | Future dates are calculated from the completion 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>. | ||
| + | |} | ||
This property is one of the most important settings because it defines whether future dates follow the calendar or depend on the actual completion of the previous generated work package. | This property is one of the most important settings because it defines whether future dates follow the calendar or depend on the actual completion of the previous generated work package. | ||
| − | == Calendar- | + | == Calendar-Based Scheduling == |
=== Purpose === | === Purpose === | ||
| Line 385: | Line 604: | ||
Calendar-based scheduling is used when maintenance should follow fixed calendar occurrences. | Calendar-based scheduling is used when maintenance should follow fixed calendar occurrences. | ||
| − | The next planned execution date is calculated according to RRULE and the calendar recurrence. | + | The next planned execution date is calculated 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;">RRULE</span> and the calendar recurrence. |
This means that delays in completing a work package do not automatically shift the whole future schedule. | This means that delays in completing a work package do not automatically shift the whole future schedule. | ||
| Line 398: | Line 617: | ||
* quarterly maintenance in fixed maintenance windows | * quarterly maintenance in fixed maintenance windows | ||
| − | === How | + | === How Calendar-Based Scheduling Works === |
| − | In calendar-based scheduling, the system calculates NEXT_DATE based on the recurrence rule and the relevant dates of existing generated work packages. | + | 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 relevant | + | 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 dates of related non-template work packages: the finished date for finished work packages and the planned start for unfinished work packages. Then it uses the recurrence rule to calculate the next valid occurrence after that date. |
| − | + | ||
| − | 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. | This means the schedule continues according to the recurrence pattern. | ||
| − | If a work package is completed later than planned, the | + | If a work package is completed later than planned, the calendar pattern is retained, but the completion reference can move past one or more occurrences and cause them to be skipped. These skipped occurrences are not generated retroactively. |
| − | === Example: | + | === Example: Calendar-Based Scheduling === |
A pump must be inspected on the 15th of every month. | A pump must be inspected on the 15th of every month. | ||
| − | Configuration | + | ==== Configuration ==== |
| − | Plan | + | {| class="wikitable" style="width: 100%;" |
| − | + | ! Setting | |
| − | + | ! Value | |
| − | + | |- | |
| − | + | | Plan type | |
| − | + | | <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;">CyclicMaintenancePlan</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;">LK_ASSET</span> | |
| − | + | | Pump 1 | |
| − | + | |- | |
| − | + | | <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_WP_TMPL</span> | |
| + | | Pump Inspection Template | ||
| + | |- | ||
| + | | <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> | ||
| + | | Pump Inspection Replication | ||
| + | |- | ||
| + | | <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> | ||
| + | | Calendar-Based | ||
| + | |- | ||
| + | | <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> | ||
| + | | Monthly on the 15th | ||
| + | |- | ||
| + | | <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> | ||
| + | | 01 January | ||
| + | |- | ||
| + | | <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> | ||
| + | | 15 March | ||
| + | |- | ||
| + | | <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> | ||
| + | | 3 | ||
| + | |- | ||
| + | | <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> | ||
| + | | Active | ||
| + | |- | ||
| + | | <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> | ||
| + | | Enabled | ||
| + | |} | ||
| + | |||
| + | ==== Result ==== | ||
The system calculates: | The system calculates: | ||
| − | EARLIEST_GENERATION_DATE | + | <pre> |
| + | EARLIEST_GENERATION_DATE = 12 March | ||
| + | </pre> | ||
On or after 12 March, the system can create the work package. | On or after 12 March, the system can create the work package. | ||
| Line 436: | Line 683: | ||
Generated work package: | Generated work package: | ||
| − | + | {| class="wikitable" | |
| + | ! Property | ||
| + | ! Value | ||
| + | |- | ||
| + | | <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> | ||
| + | | 15 March | ||
| + | |} | ||
| − | After the work package is planned, the system can calculate the next occurrence | + | After the work package is planned, the system can calculate the next occurrence: |
| − | NEXT_DATE | + | <pre> |
| + | NEXT_DATE = 15 April | ||
| + | </pre> | ||
| − | If the March work package is completed on 20 March, the next date still follows the monthly recurrence. | + | If the March work package is completed on 20 March, the next date still follows the monthly recurrence. The next planned execution date remains 15 April. |
| − | The | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Result:''' The late completion does not shift the future schedule to 20 April. | ||
| + | </div> | ||
| − | + | == Completion-Based Scheduling == | |
| − | + | ||
| − | == Completion- | + | |
=== Purpose === | === Purpose === | ||
| Line 465: | Line 720: | ||
* maintenance where a delay should also delay the next cycle | * maintenance where a delay should also delay the next cycle | ||
| − | === How | + | === How Completion-Based Scheduling Works === |
| − | In completion-based scheduling, the system recalculates NEXT_DATE after a generated work package is completed. | + | In completion-based scheduling, the system recalculates <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> after a generated work package is completed. |
The completion date becomes the basis for the next occurrence. | The completion date becomes the basis for the next occurrence. | ||
| Line 473: | Line 728: | ||
Planning changes alone do not define the next recurrence in the same way as calendar-based scheduling. | Planning changes alone do not define the next recurrence in the same way as calendar-based scheduling. | ||
| − | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> | |
| + | '''Important:''' An open non-template work package blocks new automatic job scheduling. Completion triggers next-date calculation; relevant recurrence-setting changes can also trigger calculation during save. | ||
| + | </div> | ||
| − | + | === Example: Completion-Based Scheduling === | |
| − | + | ||
| − | === Example: | + | |
A machine must be serviced every 30 days after the previous service was completed. | A machine must be serviced every 30 days after the previous service was completed. | ||
| − | Configuration: | + | ==== Configuration ==== |
| + | |||
| + | {| class="wikitable" style="width: 100%;" | ||
| + | ! Setting | ||
| + | ! Value | ||
| + | |- | ||
| + | | Plan type | ||
| + | | <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;">CyclicMaintenancePlan</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;">LK_ASSET</span> | ||
| + | | Machine 1 | ||
| + | |- | ||
| + | | <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_WP_TMPL</span> | ||
| + | | Machine Service Template | ||
| + | |- | ||
| + | | <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> | ||
| + | | Machine Service Replication | ||
| + | |- | ||
| + | | <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 | ||
| + | |- | ||
| + | | <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> | ||
| + | | Every 30 days | ||
| + | |- | ||
| + | | <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> | ||
| + | | 01 March | ||
| + | |- | ||
| + | | <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> | ||
| + | | 15 March | ||
| + | |- | ||
| + | | <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> | ||
| + | | 3 | ||
| + | |- | ||
| + | | <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> | ||
| + | | Active | ||
| + | |- | ||
| + | | <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> | ||
| + | | Enabled | ||
| + | |} | ||
| − | + | ==== Result ==== | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
The system calculates: | The system calculates: | ||
| − | EARLIEST_GENERATION_DATE | + | <pre> |
| + | EARLIEST_GENERATION_DATE = 12 March | ||
| + | </pre> | ||
On or after 12 March, the system can create the work package. | On or after 12 March, the system can create the work package. | ||
| Line 503: | Line 788: | ||
Generated work package: | Generated work package: | ||
| − | + | {| class="wikitable" | |
| + | ! Property | ||
| + | ! Value | ||
| + | |- | ||
| + | | <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> | ||
| + | | 15 March | ||
| + | |} | ||
The work package is completed on 20 March. | The work package is completed on 20 March. | ||
| Line 511: | Line 802: | ||
If the recurrence is every 30 days: | If the recurrence is every 30 days: | ||
| − | + | {| class="wikitable" | |
| − | + | ! Value | |
| − | + | ! 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;">NEXT_DATE</span> | ||
| + | | around 19 April | ||
| + | |- | ||
| + | | <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> | ||
| + | | 3 | ||
| + | |- | ||
| + | | <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> | ||
| + | | around 16 April | ||
| + | |} | ||
| − | In this mode, the delay from 15 March to 20 March shifts the future schedule. | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Result:''' In this mode, the delay from 15 March to 20 March shifts the future schedule. | ||
| + | </div> | ||
| − | == | + | == Calendar-Based vs Completion-Based Scheduling == |
| − | The difference is the date that is used as the basis for calculating NEXT_DATE. | + | The difference is the date that is used as the basis for calculating <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>. |
| − | Calendar- | + | {| class="wikitable" style="width: 100%;" |
| + | ! Aspect | ||
| + | ! Calendar-Based | ||
| + | ! Completion-Based | ||
| + | |- | ||
| + | | 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> | ||
| + | | Completion 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 | ||
| + | | The calendar pattern is retained, but missed occurrences can be skipped | ||
| + | | Future dates move with the completion date | ||
| + | |- | ||
| + | | Typical use case | ||
| + | | Fixed maintenance windows, fixed calendar intervals, legal or organizational inspection dates | ||
| + | | Service intervals that depend on the actual last maintenance | ||
| + | |- | ||
| + | | Example | ||
| + | | Planned: 15 March<br />Completed: 20 March<br />Next date: 15 April | ||
| + | | Planned: 15 March<br />Completed: 20 March<br />Interval: 30 days<br />Next date: around 19 April | ||
| + | |} | ||
| − | + | === Calendar-Based === | |
| − | + | ||
| − | === Calendar- | + | |
Calendar-based scheduling should be used when the maintenance must follow fixed planned dates. | Calendar-based scheduling should be used when the maintenance must follow fixed planned dates. | ||
| Line 531: | Line 852: | ||
Characteristics: | Characteristics: | ||
| − | * The plan follows the RRULE calendar pattern. | + | * 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. |
| − | * | + | * The calendar pattern is retained, but late completion can change the next selected occurrence. |
| − | * NEXT_DATE can be recalculated after planning 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;">NEXT_DATE</span> can be recalculated after planning updates. |
* It is useful for fixed maintenance windows and legally or organizationally fixed inspection dates. | * It is useful for fixed maintenance windows and legally or organizationally fixed inspection dates. | ||
Example: | Example: | ||
| − | Planned inspection | + | {| class="wikitable" |
| − | Completed | + | ! Event |
| − | Next date | + | ! Date |
| + | |- | ||
| + | | Planned inspection | ||
| + | | 15 March | ||
| + | |- | ||
| + | | Completed | ||
| + | | 20 March | ||
| + | |- | ||
| + | | Next date | ||
| + | | 15 April | ||
| + | |} | ||
The future date stays aligned with the calendar recurrence. | The future date stays aligned with the calendar recurrence. | ||
| − | === Completion- | + | === Completion-Based === |
Completion-based scheduling should be used when the next maintenance interval starts after the previous work was completed. | Completion-based scheduling should be used when the next maintenance interval starts after the previous work was completed. | ||
| Line 550: | Line 881: | ||
Characteristics: | Characteristics: | ||
| − | * | + | * An open non-template work package blocks new automatic job scheduling. |
| − | * The completion date is used as the basis for NEXT_DATE. | + | * 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. | * If the work is completed late, the future schedule moves. | ||
* It is useful for service intervals that depend on the actual last maintenance. | * It is useful for service intervals that depend on the actual last maintenance. | ||
| Line 557: | Line 888: | ||
Example: | Example: | ||
| − | Planned service | + | {| class="wikitable" |
| − | Completed | + | ! Event |
| − | Interval | + | ! Date |
| − | Next date | + | |- |
| + | | Planned service | ||
| + | | 15 March | ||
| + | |- | ||
| + | | Completed | ||
| + | | 20 March | ||
| + | |- | ||
| + | | Interval | ||
| + | | 30 days | ||
| + | |- | ||
| + | | Next date | ||
| + | | around 19 April | ||
| + | |} | ||
The future date shifts because the work was completed later. | The future date shifts because the work was completed later. | ||
| Line 568: | Line 911: | ||
=== Purpose === | === Purpose === | ||
| − | A RoundMaintenancePlan is used for recurring maintenance rounds. | + | A <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;">RoundMaintenancePlan</span> is used for recurring maintenance rounds. |
| − | It is a specialized type of cyclic maintenance plan. This means that it also uses RRULE and SCHEDULING_MODE. | + | It is a specialized type of cyclic maintenance plan. This means that it also uses <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> and <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>. |
| − | In addition to the cyclic scheduling logic, a round maintenance plan includes child maintenance plans linked via SYSREL_ROUND_RELATION. | + | In addition to the cyclic scheduling logic, a round maintenance plan includes child maintenance plans 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;">SYSREL_ROUND_RELATION</span>. |
| − | When the round maintenance plan is due, the system creates the main work package for the round. | + | When the round maintenance plan is due, the system creates the main work package for the round. Then it creates additional work packages from the child maintenance plans 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;">SYSREL_ROUND_RELATION</span>. |
| − | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> | |
| + | '''Important for child plans:''' For the child plans, the system does not care whether they are due, active, auto-created, or whether they have a valid <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>. The round maintenance plan uses the child plans as configuration for the additional work packages that should be created as part of the round. | ||
| + | </div> | ||
| − | + | The important configuration on the child plans is their work package generation setup, especially the configured template work package and replication setup. | |
| − | + | === Generated Result === | |
| − | + | ||
| − | === Generated | + | |
Example: | Example: | ||
| − | + | {| class="wikitable" style="width: 100%;" | |
| − | + | ! Element | |
| − | Linked child | + | ! Example |
| − | + | |- | |
| − | + | | Round maintenance plan | |
| − | + | | Machine Room Round | |
| − | + | |- | |
| + | | Linked child plan 1 | ||
| + | | Pump 1 Inspection | ||
| + | |- | ||
| + | | Linked child plan 2 | ||
| + | | Pump 2 Inspection | ||
| + | |- | ||
| + | | Linked child plan 3 | ||
| + | | Pump 3 Inspection | ||
| + | |} | ||
Generated main work package: | Generated main work package: | ||
| Line 606: | Line 958: | ||
The additional work packages are assigned to the main round work package. This allows the result of the round maintenance plan to be structured as one complete maintenance round. | The additional work packages are assigned to the main round work package. This allows the result of the round maintenance plan to be structured as one complete maintenance round. | ||
| − | == RoundMaintenancePlan | + | == RoundMaintenancePlan Properties and Relations == |
| − | === SYSREL_ROUND_RELATION === | + | {| class="wikitable" style="width: 100%;" |
| + | ! Property / relation | ||
| + | ! Purpose | ||
| + | ! Notes | ||
| + | |- | ||
| + | | <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;">SYSREL_ROUND_RELATION</span> | ||
| + | | Links the round maintenance plan to its child maintenance plans. | ||
| + | | Child plans define additional work packages created as part of the round. | ||
| + | |- | ||
| + | | <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_SELECTION_RULE</span> | ||
| + | | Exists on <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;">RoundMaintenancePlan</span>. | ||
| + | | Runtime behavior must be verified before documenting further effects. | ||
| + | |- | ||
| + | | <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;">ORDERID</span> | ||
| + | | Can exist on the relation between the round plan and a child plan. | ||
| + | | Can be copied to generated 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;">GROUPID</span> | ||
| + | | Can exist on the relation between the round plan and a child plan. | ||
| + | | Can be copied to generated work packages. | ||
| + | |} | ||
| − | SYSREL_ROUND_RELATION links the round maintenance plan to its child maintenance plans. | + | === <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;">SYSREL_ROUND_RELATION</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;">SYSREL_ROUND_RELATION</span> links the round maintenance plan to its child maintenance plans. | ||
The linked child plans define which additional work packages should be generated when the round maintenance plan is due. | The linked child plans define which additional work packages should be generated when the round maintenance plan is due. | ||
| Line 616: | Line 990: | ||
When the round plan generates work packages, the system creates: | When the round plan generates work packages, the system creates: | ||
| − | * one main work package from the round plan’s own LK_WP_TMPL | + | * one main work package from the round plan’s own <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_WP_TMPL</span> |
| − | * one additional work package for each child maintenance plan linked via SYSREL_ROUND_RELATION | + | * one additional work package for each child maintenance plan 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;">SYSREL_ROUND_RELATION</span> |
The child maintenance plans do not need to be due themselves for the round maintenance plan to use them during round generation. | The child maintenance plans do not need to be due themselves for the round maintenance plan to use them during round generation. | ||
| − | === PLAN_SELECTION_RULE === | + | === <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_SELECTION_RULE</span> === |
| − | PLAN_SELECTION_RULE exists on RoundMaintenancePlan. | + | <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_SELECTION_RULE</span> exists on <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;">RoundMaintenancePlan</span>. |
| − | The exact runtime effect of | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Open point:''' The exact runtime effect 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;">PLAN_SELECTION_RULE</span> should be documented after the implementation behavior has been verified. Until that behavior is confirmed, the wiki should not claim 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;">PLAN_SELECTION_RULE</span> filters child plans by due date, asset, or priority. | ||
| + | </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;">ORDERID</span> and <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;">GROUPID</span> === | |
| − | + | The relation between the round maintenance plan and a linked child maintenance plan can contain <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;">ORDERID</span> and <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;">GROUPID</span>. | |
| − | + | ||
| − | The relation between the round maintenance plan and a linked child maintenance plan can contain ORDERID and GROUPID. | + | |
When the system creates an additional work package from a linked child maintenance plan, these values can be copied to the generated work package. | When the system creates an additional work package from a linked child maintenance plan, these values can be copied to the generated work package. | ||
| Line 637: | Line 1,011: | ||
This can be used to structure, order, or group the additional work packages in the generated round. | This can be used to structure, order, or group the additional work packages in the generated round. | ||
| − | == Properties | + | == Properties Calculated or Updated by the System == |
| + | |||
| + | {| class="wikitable" style="width: 100%;" | ||
| + | ! Property / link | ||
| + | ! System behavior | ||
| + | |- | ||
| + | | <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> | ||
| + | | Calculated from <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> and <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;">NEXT_DATE</span> | ||
| + | | Calculated or recalculated 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;">CyclicMaintenancePlan</span> and <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;">RoundMaintenancePlan</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> | ||
| + | | Updated when a generated work package is completed. | ||
| + | |- | ||
| + | | <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> | ||
| + | | Set on generated work packages from 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>. | ||
| + | |- | ||
| + | | Links on generated work packages | ||
| + | | Required links are set automatically during generation. | ||
| + | |} | ||
| − | === 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</span> === |
| − | EARLIEST_GENERATION_DATE is calculated by the system from NEXT_DATE and LEAD_DAYS. | + | <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 from <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> and <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>. |
| − | + | <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;">LEAD_DAYS</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. | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | === NEXT_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;">NEXT_DATE</span> === |
| − | For CyclicMaintenancePlan and RoundMaintenancePlan, NEXT_DATE can be calculated or recalculated by the system. | + | 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;">CyclicMaintenancePlan</span> and <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;">RoundMaintenancePlan</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;">NEXT_DATE</span> can be calculated or recalculated by the system. |
The calculation depends on: | The calculation depends on: | ||
| − | * RRULE | + | * <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> |
| − | * RRULE_START_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_START_DATE</span> |
| − | * RRULE_UNTIL_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_UNTIL_DATE</span> |
| − | * RRULE_COUNT | + | * <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> |
| − | * 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;">SCHEDULING_MODE</span> |
* related generated work packages | * related generated work packages | ||
* planning events | * planning events | ||
* completion events | * completion events | ||
| − | For calendar-based scheduling, NEXT_DATE is calculated from the recurrence pattern and the highest relevant planned or finished date of related generated work packages. | + | 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, NEXT_DATE is calculated from the completion | + | 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 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>. |
| − | === LAST_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;">LAST_DATE</span> === |
| − | LAST_DATE is updated by the system when a generated work package is completed. | + | <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 | + | It retains the completion reference described in 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;">LAST_DATE</span> section above. |
This value is especially relevant for completion-based scheduling. | This value is especially relevant for completion-based scheduling. | ||
| − | === PLANNED_START on | + | === <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 PLANNED_START to the maintenance plan’s NEXT_DATE. | + | 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: | Example: | ||
| + | <pre> | ||
MaintenancePlan.NEXT_DATE: 15 March | MaintenancePlan.NEXT_DATE: 15 March | ||
Generated WorkPackage.PLANNED_START: 15 March | Generated WorkPackage.PLANNED_START: 15 March | ||
| + | </pre> | ||
| − | === Links on | + | === Links on Generated Work Packages === |
When the system generates a work package, it automatically sets the required links on the generated work package. | When the system generates a work package, it automatically sets the required links on the generated work package. | ||
| Line 696: | Line 1,094: | ||
The generated work package is linked to: | The generated work package is linked to: | ||
| − | * the source maintenance plan via LK_MAINTENANCE_PLAN | + | * the source 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> |
| − | * the template work package via LK_WP_TMPL | + | * the template work package 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_WP_TMPL</span> |
| − | * the assigned asset via LK_ASSET | + | * the assigned asset 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_ASSET</span> |
| − | For round maintenance plans, additional generated work packages from linked child maintenance plans are assigned to the main round work package via TASK_OWNER. | + | For round maintenance plans, additional generated work packages from linked child maintenance plans are assigned to the main round work package 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;">TASK_OWNER</span>. |
| − | == Properties and | + | == Properties and Events That Trigger Recalculation == |
| − | === NEXT_DATE | + | 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. In both scheduling modes, a reached 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> or an exhausted recurrence blocks new automatic job scheduling. The final permitted occurrence may still be generated once; retaining <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> does not by itself authorize another automatic job. |
| − | + | {| class="wikitable" style="width: 100%;" | |
| + | ! Trigger | ||
| + | ! Recalculation behavior | ||
| + | |- | ||
| + | | <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> changed | ||
| + | | Recalculates <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>. | ||
| + | |- | ||
| + | | <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> changed | ||
| + | | Recalculates <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>. | ||
| + | |- | ||
| + | | <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 | ||
| + | | 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 | ||
| + | | Recalculates the schedule and may change <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;">RRULE_UNTIL_DATE</span> changed | ||
| + | | Checks whether future occurrences are still available. | ||
| + | |- | ||
| + | | <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 positive count limit for next-date calculation has 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 | ||
| + | | 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 | ||
| + | | Notifies the linked maintenance plan and may trigger date recalculation. | ||
| + | |- | ||
| + | | 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 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>; see Generated Work Package Completed below. | ||
| + | |} | ||
| − | + | === <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> 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;">NEXT_DATE</span> changes, the system recalculates <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>. | |
| − | = | + | <pre> |
| + | EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days | ||
| + | </pre> | ||
| − | + | === <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> 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;">LEAD_DAYS</span> changes, the system recalculates <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>. | |
| − | EARLIEST_GENERATION_DATE = NEXT_DATE - LEAD_DAYS | + | <pre> |
| + | EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days | ||
| + | </pre> | ||
| − | === RRULE | + | === <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 === |
| − | When RRULE changes, the recurrence pattern changes. | + | 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 | + | The system 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 NEXT_DATE is recalculated, EARLIEST_GENERATION_DATE is recalculated as well. | + | 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. |
| − | === RRULE_START_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_START_DATE</span> Changed === |
| − | When RRULE_START_DATE changes, the start point of the recurrence changes. | + | 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_START_DATE</span> changes, the start point of the recurrence changes. |
| − | The system recalculates the schedule. | + | The system recalculates the schedule. This can change <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 <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. | |
| − | + | === <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> 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_UNTIL_DATE</span> changes, the end boundary of the recurrence changes. |
| − | + | ||
| − | + | ||
The system checks whether future occurrences are still available. | The system checks whether future occurrences are still available. | ||
| − | If no further occurrence is possible because of RRULE_UNTIL_DATE, the system cannot calculate a new NEXT_DATE. | + | If no further occurrence is possible because 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;">RRULE_UNTIL_DATE</span>, the system cannot calculate 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>. The end boundary is inclusive. When no permitted occurrence remains to be generated, new automatic job scheduling is blocked in both modes. |
| − | === RRULE_COUNT | + | === <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 RRULE_COUNT changes, the system checks whether the | + | 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 positive count limit for next-date calculation has been reached. |
| − | If the number of related | + | 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_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. |
| − | === 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;">SCHEDULING_MODE</span> Changed === |
| − | When SCHEDULING_MODE changes, the logic for calculating future dates changes. | + | 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;">SCHEDULING_MODE</span> changes, the logic for calculating future dates changes. |
Changing to Calendar-Based means that the plan follows the calendar recurrence. | Changing to Calendar-Based means that the plan follows the calendar recurrence. | ||
| − | Changing to Completion-Based means that the plan calculates NEXT_DATE from the completion | + | 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 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>. |
| − | Because this changes the calculation logic, the system | + | Because this changes the calculation logic, the system 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 NEXT_DATE changes, EARLIEST_GENERATION_DATE is recalculated as well. | + | 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. |
| − | === Generated | + | === 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 === |
| − | When PLANNED_START of a generated work package is set or changed, the work package notifies the linked maintenance plan. | + | 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;">PLANNED_START</span> of a generated work package is set or changed, the work package notifies the linked maintenance plan. |
| − | For calendar-based cyclic maintenance plans, this can trigger recalculation of NEXT_DATE. | + | For calendar-based cyclic maintenance plans, this can trigger recalculation 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>. The system uses the planning information to continue the calendar-based recurrence. |
| − | + | For completion-based cyclic maintenance plans, a <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> change does not drive the recurrence in the same way. <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 mainly calculated after the work package is completed. | |
| − | + | === Generated Work Package Completed === | |
| − | + | ||
| − | === Generated | + | |
When a generated work package is completed, the work package notifies the linked maintenance plan. | When a generated work package is completed, the work package notifies the linked maintenance plan. | ||
| Line 780: | Line 1,211: | ||
A work package is considered completed when: | A work package is considered completed when: | ||
| + | <pre> | ||
ORGA_STATUS == 100 | ORGA_STATUS == 100 | ||
| + | </pre> | ||
| − | The system updates LAST_DATE. | + | 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>. 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>. 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;">LAST_DATE</span> has changed. |
| − | + | ||
| − | + | ||
For calendar-based scheduling: | For calendar-based scheduling: | ||
* the system continues according to the calendar recurrence | * the system continues according to the calendar recurrence | ||
| − | * NEXT_DATE is calculated from the recurrence pattern and relevant planned or finished dates | + | * <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 relevant planned or finished dates |
For completion-based scheduling: | For completion-based scheduling: | ||
* the completion date becomes the basis for the next occurrence | * the completion date becomes the basis for the next occurrence | ||
| − | * NEXT_DATE is calculated from the completion 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;">NEXT_DATE</span> is calculated from the completion date |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | 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 updated, <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. | |
| − | + | == Work Package Generation Logic == | |
| − | + | === When Is a Plan Ready to Create a Work Package? === | |
| − | The | + | Automatic generation consists of job scheduling followed by later execution. The plan validity, status, automatic generation, due-date, recurrence-limit, and open work package checks below apply before scheduling. The open work package check applies only to Completion-Based scheduling. The template and replication configuration must be present when the job executes. |
| − | EARLIEST_GENERATION_DATE <= current date | + | {| class="wikitable" style="width: 100%;" |
| + | ! Requirement | ||
| + | ! Condition | ||
| + | ! Notes | ||
| + | |- | ||
| + | | Plan validity | ||
| + | | The plan must be valid. | ||
| + | | For cyclic maintenance plans, this requires a valid <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>, assigned <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_ASSET</span>, and available <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>. | ||
| + | |- | ||
| + | | 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 ignored for 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. | ||
| + | |- | ||
| + | | Template 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;">LK_WP_TMPL</span> must be set. | ||
| + | | The linked work package must be a 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 at 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 date and time</span> | ||
| + | | A new job may only be automatically scheduled once the earliest generation date has been reached. | ||
| + | |- | ||
| + | | Open work packages (Completion-Based only) | ||
| + | | No open non-template work package may exist for the plan when automatic scheduling is checked. | ||
| + | | There must be no 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>. Calendar-Based scheduling is not blocked by open work packages. | ||
| + | |- | ||
| + | | Recurrence limits | ||
| + | | 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> must not be reached, and a permitted occurrence must remain to be generated. | ||
| + | | Applies to both scheduling modes; a retained <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> alone does not authorize another automatic job. | ||
| + | |} | ||
| − | + | <div style="border-left: 4px solid #f0ad4e; background-color: #fff8e5; padding: 10px 12px; margin: 12px 0;"> | |
| + | '''Generation rule:''' In Completion-Based scheduling, the open work package check prevents new automatic job scheduling while an open non-template work package 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. | |
| − | + | '''Open point:''' Whether an already scheduled job must recheck recurrence limits if they become exhausted before execution remains to be defined. | |
| − | == Round | + | == Round Work Package Generation == |
A round maintenance plan creates a main work package for the round. | A round maintenance plan creates a main work package for the round. | ||
| − | After the main work package has been created, the system processes the maintenance plans linked via SYSREL_ROUND_RELATION. | + | After the main work package has been created, the system processes the maintenance plans 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;">SYSREL_ROUND_RELATION</span>. |
For each linked child maintenance plan, the system creates an additional work package. | For each linked child maintenance plan, the system creates an additional work package. | ||
| − | These additional generated work packages are assigned to the main round work package via TASK_OWNER. | + | These additional generated work packages are assigned to the main round work package 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;">TASK_OWNER</span>. |
For child plans used in a round, the system does not care whether the child plan: | For child plans used in a round, the system does not care whether the child plan: | ||
| − | * has PLAN_STATUS == Active | + | * has <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> |
| − | * has AUTO_CREATE == true | + | * has <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 == true</span> |
| − | * has a valid RRULE | + | * has a valid <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> |
| − | * has a valid NEXT_DATE | + | * has a valid <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 due based on its own EARLIEST_GENERATION_DATE | + | * is due based on its own <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> |
| − | The round plan controls the timing. The child plans define what additional work packages should be created as part of the round. | + | <div style="border-left: 4px solid #36c; background-color: #f8f9fa; padding: 10px 12px; margin: 12px 0;"> |
| + | '''Rule:''' The round plan controls the timing. The child plans define what additional work packages should be created as part of the round. | ||
| + | </div> | ||
| − | + | == See also == | |
| + | * [[MRO (Plugin)]] | ||
| + | * [[MRO_Objects_(Client)]] | ||
| + | * [[MRO_Implemented_Objects]] | ||
| + | * [[MRO_Material_Management]] | ||
| + | * [[MRO_Notification]] | ||
| + | * [[MRO_Replication_Jobs]] | ||
Latest revision as of 14:19, 16 November 2026
Contents
- 1 MRO Maintenance Planning
- 1.1 Overview
- 1.2 Basic Concept
- 1.3 MaintenancePlan Base Class
- 1.4 Work Package Properties Used by Maintenance Planning
- 1.5 CyclicMaintenancePlan
- 1.6 CyclicMaintenancePlan Properties
- 1.7 Calendar-Based Scheduling
- 1.8 Completion-Based Scheduling
- 1.9 Calendar-Based vs Completion-Based Scheduling
- 1.10 RoundMaintenancePlan
- 1.11 RoundMaintenancePlan Properties and Relations
- 1.12 Properties Calculated or Updated by the System
- 1.13 Properties and Events That Trigger Recalculation
- 1.14 Work Package Generation Logic
- 1.15 Round Work Package Generation
- 1.16 See also
MRO Maintenance Planning
Summary: The Maintenance Planning feature in MRO is used to plan recurring maintenance work and automatically generate work packages from maintenance plans. The maintenance plan defines the rules. The generated work package is used by users to execute and complete the actual maintenance work.
Overview
A maintenance plan defines the rules for creating work packages. These rules include:
- when work package generation should be scheduled
- 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 work package generation may be scheduled
- how future planning dates are calculated
The actual maintenance work is not executed by the maintenance plan itself. The 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, MaintenancePlan 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.
The fully implemented maintenance plan types in standard MRO are:
- CyclicMaintenancePlan
- RoundMaintenancePlan
Custom maintenance plan types can be implemented by deriving from the abstract MaintenancePlan base class. However, the standard MRO maintenance planning feature is based on cyclic maintenance plans and round maintenance plans.
Important: CyclicMaintenancePlan and RoundMaintenancePlan support recurrence-based scheduling. This includes planned execution dates, automatic work package generation, calendar-based scheduling, completion-based scheduling, automatic recalculation of scheduling dates, and generation based on due dates.
RoundMaintenancePlan additionally supports maintenance rounds. A round maintenance plan creates one main work package for the round. It can also create additional work packages from child maintenance plans linked via SYSREL_ROUND_RELATION. These additional work packages are assigned to the main round work package.
Basic Concept
The maintenance planning feature is built around four main parts:
| Part | Description |
|---|---|
| MaintenancePlan | Defines the rules for creating generated work packages. |
| Template work package | Defines what the generated work package should look like. |
| Replication configuration | Defines how the template work package is copied. |
| Generated work package | The actual work package created by the maintenance plan. |
Maintenance Plan
The maintenance plan defines the rules for creating work packages.
This includes, for example:
- when work package generation should be scheduled
- which asset the work package should belong to
- how many days before the planned execution date work package generation may be scheduled
- which template work package should be used
- which recurrence pattern should be used
- whether future dates are calculated calendar-based or completion-based
Template Work Package
The template work package defines what the generated work package should look like.
It is the source work package that is copied when the maintenance plan creates a new work package.
Rule: Only work packages with ISTEMPLATE set can be used as template work packages.
Replication Configuration
The replication configuration defines how the template work package is copied.
This includes, for example:
- which properties are copied
- 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 ISTEMPLATE is false on the result. The replication job does not clear this flag automatically. Linked work packages with ISTEMPLATE 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
The generated work package is the actual result created by the maintenance plan.
Example:
- A pump has to be inspected every month.
- 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 schedules a replication job. 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 LK_MAINTENANCE_PLAN.
This link allows the maintenance plan to react when the generated work package is planned or completed.
MaintenancePlan Base Class
Purpose
MaintenancePlan is the abstract base class for maintenance planning in MRO.
It provides the common properties and logic required by maintenance plan implementations.
Because MaintenancePlan is abstract, users do not create or use this base class directly in the standard MRO feature. Instead, the concrete maintenance plan types are used:
- CyclicMaintenancePlan
- RoundMaintenancePlan
Developers can derive from the abstract base class if a project requires a custom maintenance plan type. In that case, the custom implementation must provide the missing plan-specific behavior.
Base Class Properties
| Property | Purpose | Notes |
|---|---|---|
| LK_ASSET | Links the maintenance plan to the asset that requires maintenance. | Required for a valid cyclic maintenance plan. |
| LK_WP_TMPL | Links the maintenance plan to the template work package. | The linked work package must have ISTEMPLATE set. |
| LK_REPLICATION_CONFIG | Links the maintenance plan to the replication configuration. | Required for work package generation. |
| NEXT_DATE | Defines the planned execution date of the next maintenance activity. | Used as PLANNED_START on generated work packages. |
| LEAD_DAYS | Defines how many days before NEXT_DATE the system may schedule work package generation. | Does not define the recurrence interval. |
| EARLIEST_GENERATION_DATE | Defines the earliest date on which work package generation may be scheduled. | Calculated by the system. |
| PLAN_STATUS | Defines whether the maintenance plan is active or inactive. | Only active plans are considered for automatic job scheduling. |
| AUTO_CREATE | Defines whether automatic job scheduling is enabled. | If disabled, no new replication job is automatically scheduled for the plan. |
| LAST_DATE | Stores the retained completion reference date; see LAST_DATE below. | Especially relevant for completion-based scheduling. |
| PRIORITY | Numeric value that can be used to sort maintenance plans. | For round maintenance plans, see also PLAN_SELECTION_RULE. |
LK_ASSET
LK_ASSET is the link to the asset that requires maintenance.
This can be, for example:
- equipment
- a functional location
- another customized maintainable object deriving from Asset
The generated work package is linked to the same asset.
Requirement: A cyclic maintenance plan requires LK_ASSET to be assigned in order to be valid.
LK_WP_TMPL
LK_WP_TMPL is the link to the template work package.
The template work package defines what the generated work package should look like.
When the maintenance plan creates a work package, the system copies the work package referenced by LK_WP_TMPL.
The linked work package must be a template work package. This means its ISTEMPLATE property must be set.
Requirement: LK_WP_TMPL must be configured before the maintenance plan can create a work package.
LK_REPLICATION_CONFIG
LK_REPLICATION_CONFIG is the link to the replication configuration.
The replication configuration defines how the template work package is copied into a generated work package.
It can define, for example:
- which properties are copied
- how references are copied
- what the target meta class of the generated work package should be
Requirement: LK_REPLICATION_CONFIG must be configured before the maintenance plan can create a work package.
NEXT_DATE
NEXT_DATE defines the planned execution date of the next maintenance activity.
It answers the question: When should the next maintenance work be performed?
NEXT_DATE is not necessarily the date on which the work package is created.
| Value | Example |
|---|---|
| NEXT_DATE | 15 March |
| LEAD_DAYS | 3 |
| EARLIEST_GENERATION_DATE | 12 March |
In this example, the system may create the work package on 12 March, but the generated work package is planned for 15 March.
When a work package is generated, the generated work package receives the maintenance plan’s NEXT_DATE as its PLANNED_START.
LEAD_DAYS
LEAD_DAYS defines how many days before NEXT_DATE the system may schedule work package generation.
This is used to schedule work package generation before the actual planned execution date.
| Value | Example |
|---|---|
| NEXT_DATE | 15 March |
| LEAD_DAYS | 3 |
| Resulting EARLIEST_GENERATION_DATE | 12 March |
Note: LEAD_DAYS does not define the recurrence interval. It only defines how early work package generation may be scheduled before the planned execution date.
EARLIEST_GENERATION_DATE
EARLIEST_GENERATION_DATE is calculated by the system.
It defines the earliest date on which work package generation may be scheduled.
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
Only positive LEAD_DAYS values are subtracted; zero or negative values leave the date unchanged. If the year of NEXT_DATE is less than 2000, the result is default(DateTime) instead.
Example:
| Value | Example |
|---|---|
| NEXT_DATE | 15 March |
| LEAD_DAYS | 3 |
| EARLIEST_GENERATION_DATE | 12 March |
The maintenance planning orchestrator searches for active plans where EARLIEST_GENERATION_DATE has been reached.
A plan can be considered for automatic job scheduling when:
EARLIEST_GENERATION_DATE <= current date and time
If EARLIEST_GENERATION_DATE has not yet been reached, no new replication job is automatically scheduled for the plan.
PLAN_STATUS
PLAN_STATUS defines whether the maintenance plan is active or inactive.
Only active plans are considered for automatic job scheduling. Inactive plans are ignored by the maintenance planning orchestrator.
Typical values are:
- Inactive
- Active
This allows users to temporarily disable a maintenance plan without deleting it.
AUTO_CREATE
AUTO_CREATE defines whether the system is allowed to automatically schedule replication jobs for the maintenance plan.
If AUTO_CREATE is enabled, the maintenance planning orchestrator can schedule replication jobs once the plan is due.
If AUTO_CREATE is disabled, no new replication job is automatically scheduled for the plan.
LAST_DATE
LAST_DATE stores the highest of its existing value and the completion dates of related non-template finished work packages. For cyclic maintenance plans, RRULE_START_DATE 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.
| Value | Example |
|---|---|
| Previous generated work package completed | 20 March |
| SCHEDULING_MODE | Completion-Based |
| Next date is calculated from | 20 March |
The system updates LAST_DATE 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 RRULE_START_DATE before the first completion.
PRIORITY
PRIORITY is a numeric value that can be used to sort maintenance plans.
For round maintenance plans, there is also a property called PLAN_SELECTION_RULE.
Open point: The exact effect of PLAN_SELECTION_RULE should only be documented after the implementation behavior has been verified.
Work Package Properties Used by Maintenance Planning
| Property | Used on | Purpose |
|---|---|---|
| LK_MAINTENANCE_PLAN | Generated work package | Links the generated work package back to the maintenance plan that triggered its creation. |
| LK_WP_TMPL | Generated work package | Stores the template work package that was used to create the generated work package. |
| LK_ASSET | Generated work package | Stores the asset for which the work package was created. |
| PLANNED_START | Generated work package | Stores the planned start date of the generated work package. |
| ORGA_STATUS | Generated work package | Used to determine whether a generated work package is finished. |
| TASK_OWNER | Additional round work package | Assigns additional generated work packages to the main round work package. |
| ORDERID | Additional round work package | Can be copied from SYSREL_ROUND_RELATION to structure or order round work packages. |
| GROUPID | Additional round work package | Can be copied from SYSREL_ROUND_RELATION to group round work packages. |
LK_MAINTENANCE_PLAN
LK_MAINTENANCE_PLAN is set on generated work packages.
It stores the maintenance plan that triggered the creation of the work package.
This is important because the maintenance plan itself does not directly store a list of generated work packages. Instead, generated work packages reference their source maintenance plan via LK_MAINTENANCE_PLAN.
This link allows the system to find work packages created from a maintenance plan and to update the maintenance plan when a generated work package is planned or completed.
LK_WP_TMPL
On a generated work package, LK_WP_TMPL stores the template work package that was used to create the generated work package.
This allows users and the system to see which template was used as the source.
LK_ASSET
On a generated work package, LK_ASSET stores the asset for which the work package was created.
This is usually copied or assigned based on the maintenance plan’s LK_ASSET.
PLANNED_START
PLANNED_START stores the planned start date of the generated work package.
When a maintenance plan generates a work package, the system sets:
generated WorkPackage.PLANNED_START = MaintenancePlan.NEXT_DATE
ORGA_STATUS
ORGA_STATUS is used to determine whether a generated work package is finished.
A work package is considered finished when:
ORGA_STATUS == 100
Open work packages are non-template work packages linked to the maintenance plan where:
ORGA_STATUS != 100
Generation rule: For Completion-Based scheduling, automatic job scheduling is skipped while the maintenance plan has an open non-template work package. Open work packages do not block Calendar-Based scheduling.
TASK_OWNER
TASK_OWNER is used in round maintenance scenarios.
When a round maintenance plan creates a main work package and additional work packages from linked child plans, the additional work packages are assigned to the main round work package via TASK_OWNER.
ORDERID and GROUPID
ORDERID and GROUPID can be copied from the SYSREL_ROUND_RELATION relation to generated work packages in a round maintenance scenario.
They can be used to order or group the additional work packages that belong to the generated round work package.
CyclicMaintenancePlan
Purpose
A CyclicMaintenancePlan is used for recurring maintenance work on an asset.
It is the standard maintenance plan type for maintenance activities that repeat according to a defined recurrence pattern.
Examples:
- inspect a pump every month
- service a machine every 6 months
- check safety equipment every Monday
- replace a filter every 30 days
- perform annual maintenance on a functional location
A cyclic maintenance plan uses RRULE to define the recurrence. It also uses SCHEDULING_MODE to define how future dates are calculated.
Key concept: SCHEDULING_MODE defines whether the plan follows fixed calendar dates or whether the next date depends on the actual completion date of the previous generated work package.
The supported scheduling modes are:
- Calendar-Based
- Completion-Based
CyclicMaintenancePlan Properties
| Property | Purpose | Notes |
|---|---|---|
| RRULE | Defines the recurrence pattern. | Must be valid and parseable. |
| RRULE_START_DATE | Defines when the recurrence pattern starts. | Used as the start point for recurrence calculation. |
| RRULE_UNTIL_DATE | Optional end date for the recurrence. | Used as an end boundary for calculating new occurrences. |
| RRULE_COUNT | Limits further next-date calculation based on the number of related non-template work packages. | Applies only to positive values; reaching the count does not clear the existing NEXT_DATE. |
| SCHEDULING_MODE | Defines how NEXT_DATE is calculated. | Supports Calendar-Based and Completion-Based scheduling. |
RRULE
RRULE defines the recurrence pattern of a cyclic maintenance plan.
It describes how often the maintenance should occur.
Examples:
FREQ=DAILY FREQ=WEEKLY;BYDAY=MO,WE,FR FREQ=MONTHLY;BYMONTHDAY=15
The system uses RRULE to calculate future planned execution dates.
Problem: If RRULE is invalid and cannot be parsed, the cyclic maintenance plan is not valid and is not eligible for new automatic job scheduling.
RRULE_START_DATE
RRULE_START_DATE defines when the recurrence pattern starts.
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:
| Setting | Value |
|---|---|
| RRULE_START_DATE | 01 January |
| RRULE | Monthly on the 15th |
The system uses these values to determine valid planned execution dates.
RRULE_UNTIL_DATE
RRULE_UNTIL_DATE is an optional end date for the recurrence.
If this date is valid and configured, it is passed to the recurrence calculation as an end boundary.
This can be used to set an end boundary for recurrence calculation.
RRULE_COUNT
RRULE_COUNT limits further next-date calculation based on the number of related non-template work packages.
Example:
| Setting | Value |
|---|---|
| RRULE_COUNT | 10 |
When a positive RRULE_COUNT 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. Reaching the limit also blocks new automatic job scheduling in both scheduling modes.
SCHEDULING_MODE
SCHEDULING_MODE defines how NEXT_DATE is calculated for a cyclic maintenance plan.
SCHEDULING_MODE is only relevant for concrete maintenance plan types that use recurrence logic, such as CyclicMaintenancePlan and RoundMaintenancePlan.
The supported scheduling modes are:
| Scheduling mode | Description |
|---|---|
| Calendar-Based | Future dates follow the recurrence pattern defined by RRULE. |
| Completion-Based | Future dates are calculated from the completion reference described under LAST_DATE. |
This property is one of the most important settings because it defines whether future dates follow the calendar or depend on the actual completion of the previous generated work package.
Calendar-Based Scheduling
Purpose
Calendar-based scheduling is used when maintenance should follow fixed calendar occurrences.
The next planned execution date is calculated according to RRULE and the calendar recurrence.
This means that delays in completing a work package do not automatically shift the whole future schedule.
Use calendar-based scheduling when the maintenance should happen on fixed dates or fixed calendar intervals.
Examples:
- inspection every 15th day of the month
- safety check every Monday
- yearly inspection every January
- quarterly maintenance in fixed maintenance windows
How Calendar-Based Scheduling Works
In calendar-based scheduling, the system calculates NEXT_DATE based on the recurrence rule and the relevant dates of existing generated work packages.
The system determines the highest of the existing LAST_DATE, RRULE_START_DATE, and the relevant dates of related non-template work packages: the finished date for finished work packages and the planned 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 calendar pattern is retained, but the completion reference can move past one or more occurrences and cause them to be skipped. These skipped occurrences are not generated retroactively.
Example: Calendar-Based Scheduling
A pump must be inspected on the 15th of every month.
Configuration
| Setting | Value |
|---|---|
| Plan type | CyclicMaintenancePlan |
| LK_ASSET | Pump 1 |
| LK_WP_TMPL | Pump Inspection Template |
| LK_REPLICATION_CONFIG | Pump Inspection Replication |
| SCHEDULING_MODE | Calendar-Based |
| RRULE | Monthly on the 15th |
| RRULE_START_DATE | 01 January |
| NEXT_DATE | 15 March |
| LEAD_DAYS | 3 |
| PLAN_STATUS | Active |
| AUTO_CREATE | Enabled |
Result
The system calculates:
EARLIEST_GENERATION_DATE = 12 March
On or after 12 March, the system can create the work package.
Generated work package:
| Property | Value |
|---|---|
| PLANNED_START | 15 March |
After the work package is planned, the system can calculate the next occurrence:
NEXT_DATE = 15 April
If the March work package is completed on 20 March, the next date still follows the monthly recurrence. The next planned execution date remains 15 April.
Result: The late completion does not shift the future schedule to 20 April.
Completion-Based Scheduling
Purpose
Completion-based scheduling is used when the next maintenance date should depend on the actual completion date of the previous generated work package.
This means that the interval starts after the work has actually been completed.
Use completion-based scheduling when the maintenance should repeat based on the time since the last completed maintenance activity.
Examples:
- service every 30 days after the last service
- inspection 6 months after the previous inspection was completed
- replacement 90 days after the previous replacement
- maintenance where a delay should also delay the next cycle
How Completion-Based Scheduling Works
In completion-based scheduling, the system recalculates NEXT_DATE after a generated work package is completed.
The completion date becomes the basis for the next occurrence.
Planning changes alone do not define the next recurrence in the same way as calendar-based scheduling.
Important: An open non-template work package blocks new automatic job scheduling. Completion triggers next-date calculation; relevant recurrence-setting changes can also trigger calculation during save.
Example: Completion-Based Scheduling
A machine must be serviced every 30 days after the previous service was completed.
Configuration
| Setting | Value |
|---|---|
| Plan type | CyclicMaintenancePlan |
| LK_ASSET | Machine 1 |
| LK_WP_TMPL | Machine Service Template |
| LK_REPLICATION_CONFIG | Machine Service Replication |
| SCHEDULING_MODE | Completion-Based |
| RRULE | Every 30 days |
| RRULE_START_DATE | 01 March |
| NEXT_DATE | 15 March |
| LEAD_DAYS | 3 |
| PLAN_STATUS | Active |
| AUTO_CREATE | Enabled |
Result
The system calculates:
EARLIEST_GENERATION_DATE = 12 March
On or after 12 March, the system can create the work package.
Generated work package:
| Property | Value |
|---|---|
| PLANNED_START | 15 March |
The work package is completed on 20 March.
Because the plan is completion-based, the system calculates the next date from 20 March.
If the recurrence is every 30 days:
| Value | Example |
|---|---|
| NEXT_DATE | around 19 April |
| LEAD_DAYS | 3 |
| EARLIEST_GENERATION_DATE | around 16 April |
Result: In this mode, the delay from 15 March to 20 March shifts the future schedule.
Calendar-Based vs Completion-Based Scheduling
The difference is the date that is used as the basis for calculating NEXT_DATE.
| Aspect | Calendar-Based | Completion-Based |
|---|---|---|
| Basis for NEXT_DATE | Recurrence defined by RRULE | Completion reference described under LAST_DATE |
| Effect of late completion | The calendar pattern is retained, but missed occurrences can be skipped | Future dates move with the completion date |
| Typical use case | Fixed maintenance windows, fixed calendar intervals, legal or organizational inspection dates | Service intervals that depend on the actual last maintenance |
| Example | Planned: 15 March Completed: 20 March Next date: 15 April |
Planned: 15 March Completed: 20 March Interval: 30 days Next date: around 19 April |
Calendar-Based
Calendar-based scheduling should be used when the maintenance must follow fixed planned dates.
Characteristics:
- The plan follows the RRULE calendar pattern.
- The calendar pattern is retained, but late completion can change the next selected occurrence.
- NEXT_DATE can be recalculated after planning updates.
- It is useful for fixed maintenance windows and legally or organizationally fixed inspection dates.
Example:
| Event | Date |
|---|---|
| Planned inspection | 15 March |
| Completed | 20 March |
| Next date | 15 April |
The future date stays aligned with the calendar recurrence.
Completion-Based
Completion-based scheduling should be used when the next maintenance interval starts after the previous work was completed.
Characteristics:
- An open non-template work package blocks new automatic job scheduling.
- The completion date is used as the basis for NEXT_DATE.
- If the work is completed late, the future schedule moves.
- It is useful for service intervals that depend on the actual last maintenance.
Example:
| Event | Date |
|---|---|
| Planned service | 15 March |
| Completed | 20 March |
| Interval | 30 days |
| Next date | around 19 April |
The future date shifts because the work was completed later.
RoundMaintenancePlan
Purpose
A RoundMaintenancePlan is used for recurring maintenance rounds.
It is a specialized type of cyclic maintenance plan. This means that it also uses RRULE and SCHEDULING_MODE.
In addition to the cyclic scheduling logic, a round maintenance plan includes child maintenance plans linked via SYSREL_ROUND_RELATION.
When the round maintenance plan is due, the system creates the main work package for the round. Then it creates additional work packages from the child maintenance plans linked via SYSREL_ROUND_RELATION.
Important for child plans: For the child plans, the system does not care whether they are due, active, auto-created, or whether they have a valid RRULE. The round maintenance plan uses the child plans as configuration for the additional work packages that should be created as part of the round.
The important configuration on the child plans is their work package generation setup, especially the configured template work package and replication setup.
Generated Result
Example:
| Element | Example |
|---|---|
| Round maintenance plan | Machine Room Round |
| Linked child plan 1 | Pump 1 Inspection |
| Linked child plan 2 | Pump 2 Inspection |
| Linked child plan 3 | Pump 3 Inspection |
Generated main work package:
- Machine Room Round
Additional generated work packages inside the main round work package:
- Pump 1 Inspection
- Pump 2 Inspection
- Pump 3 Inspection
The additional work packages are assigned to the main round work package. This allows the result of the round maintenance plan to be structured as one complete maintenance round.
RoundMaintenancePlan Properties and Relations
| Property / relation | Purpose | Notes |
|---|---|---|
| SYSREL_ROUND_RELATION | Links the round maintenance plan to its child maintenance plans. | Child plans define additional work packages created as part of the round. |
| PLAN_SELECTION_RULE | Exists on RoundMaintenancePlan. | Runtime behavior must be verified before documenting further effects. |
| ORDERID | Can exist on the relation between the round plan and a child plan. | Can be copied to generated work packages. |
| GROUPID | Can exist on the relation between the round plan and a child plan. | Can be copied to generated work packages. |
SYSREL_ROUND_RELATION
SYSREL_ROUND_RELATION links the round maintenance plan to its child maintenance plans.
The linked child plans define which additional work packages should be generated when the round maintenance plan is due.
When the round plan generates work packages, the system creates:
- one main work package from the round plan’s own LK_WP_TMPL
- one additional work package for each child maintenance plan linked via SYSREL_ROUND_RELATION
The child maintenance plans do not need to be due themselves for the round maintenance plan to use them during round generation.
PLAN_SELECTION_RULE
PLAN_SELECTION_RULE exists on RoundMaintenancePlan.
Open point: The exact runtime effect of PLAN_SELECTION_RULE should be documented after the implementation behavior has been verified. Until that behavior is confirmed, the wiki should not claim that PLAN_SELECTION_RULE filters child plans by due date, asset, or priority.
ORDERID and GROUPID
The relation between the round maintenance plan and a linked child maintenance plan can contain ORDERID and GROUPID.
When the system creates an additional work package from a linked child maintenance plan, these values can be copied to the generated work package.
This can be used to structure, order, or group the additional work packages in the generated round.
Properties Calculated or Updated by the System
| Property / link | System behavior |
|---|---|
| EARLIEST_GENERATION_DATE | Calculated from NEXT_DATE and LEAD_DAYS. |
| NEXT_DATE | Calculated or recalculated for CyclicMaintenancePlan and RoundMaintenancePlan. |
| LAST_DATE | Updated when a generated work package is completed. |
| PLANNED_START | Set on generated work packages from the maintenance plan’s NEXT_DATE. |
| Links on generated work packages | Required links are set automatically during generation. |
EARLIEST_GENERATION_DATE
EARLIEST_GENERATION_DATE is calculated by the system from NEXT_DATE and LEAD_DAYS.
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
This value is recalculated during save when:
- NEXT_DATE changes
- LEAD_DAYS changes
- NEXT_DATE is recalculated after planning or completion
- recurrence settings cause a new NEXT_DATE to be calculated
For cyclic maintenance plans, this value is recalculated on every save.
NEXT_DATE
For CyclicMaintenancePlan and RoundMaintenancePlan, NEXT_DATE can be calculated or recalculated by the system.
The calculation depends on:
- RRULE
- RRULE_START_DATE
- RRULE_UNTIL_DATE
- RRULE_COUNT
- SCHEDULING_MODE
- related generated work packages
- planning events
- completion events
For calendar-based scheduling, NEXT_DATE is calculated from the recurrence pattern and the highest relevant planned or finished date of related generated work packages.
For completion-based scheduling, NEXT_DATE is calculated from the completion reference described under LAST_DATE.
LAST_DATE
LAST_DATE is updated by the system when a generated work package is completed.
It retains the completion reference described in the LAST_DATE section above.
This value is especially relevant for completion-based scheduling.
PLANNED_START on Generated Work Packages
When the system generates a work package from a maintenance plan, it sets the generated work package’s PLANNED_START to the maintenance plan’s NEXT_DATE at job execution. The scheduled job stores the plan identifier, not a snapshot of this date.
Example:
MaintenancePlan.NEXT_DATE: 15 March Generated WorkPackage.PLANNED_START: 15 March
Links on Generated Work Packages
When the system generates a work package, it automatically sets the required links on the generated work package.
The generated work package is linked to:
- the source maintenance plan via LK_MAINTENANCE_PLAN
- the template work package via LK_WP_TMPL
- the assigned asset via LK_ASSET
For round maintenance plans, additional generated work packages from linked child maintenance plans are assigned to the main round work package via TASK_OWNER.
Properties and Events That Trigger Recalculation
Property changes trigger recalculation during save. A new NEXT_DATE is assigned only if recurrence calculation succeeds. If no further occurrence can be calculated, including when a positive RRULE_COUNT is reached, the existing NEXT_DATE is retained. In both scheduling modes, a reached positive RRULE_COUNT or an exhausted recurrence blocks new automatic job scheduling. The final permitted occurrence may still be generated once; retaining NEXT_DATE does not by itself authorize another automatic job.
| Trigger | Recalculation behavior |
|---|---|
| NEXT_DATE changed | Recalculates EARLIEST_GENERATION_DATE. |
| LEAD_DAYS changed | Recalculates EARLIEST_GENERATION_DATE. |
| RRULE changed | Attempts to recalculate NEXT_DATE based on the new recurrence rule and selected SCHEDULING_MODE. |
| RRULE_START_DATE changed | Recalculates the schedule and may change NEXT_DATE. |
| RRULE_UNTIL_DATE changed | Checks whether future occurrences are still available. |
| RRULE_COUNT changed | Checks whether the positive count limit for next-date calculation has been reached. |
| SCHEDULING_MODE changed | Attempts to recalculate NEXT_DATE according to the selected scheduling mode. |
| LAST_DATE changed | Attempts to recalculate NEXT_DATE according to the selected scheduling mode. |
| Generated work package PLANNED_START changed | Notifies the linked maintenance plan and may trigger date recalculation. |
| Generated work package completed | Updates LAST_DATE and attempts to recalculate NEXT_DATE; see Generated Work Package Completed below. |
NEXT_DATE Changed
When NEXT_DATE changes, the system recalculates EARLIEST_GENERATION_DATE.
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
LEAD_DAYS Changed
When LEAD_DAYS changes, the system recalculates EARLIEST_GENERATION_DATE.
EARLIEST_GENERATION_DATE = NEXT_DATE - max(LEAD_DAYS, 0) days
RRULE Changed
When RRULE changes, the recurrence pattern changes.
The system attempts to recalculate NEXT_DATE based on the new recurrence rule and the selected SCHEDULING_MODE.
After NEXT_DATE is recalculated, EARLIEST_GENERATION_DATE is recalculated as well.
RRULE_START_DATE Changed
When RRULE_START_DATE changes, the start point of the recurrence changes.
The system recalculates the schedule. This can change NEXT_DATE.
If NEXT_DATE changes, EARLIEST_GENERATION_DATE is recalculated as well.
RRULE_UNTIL_DATE Changed
When RRULE_UNTIL_DATE changes, the end boundary of the recurrence changes.
The system checks whether future occurrences are still available.
If no further occurrence is possible because of RRULE_UNTIL_DATE, the system cannot calculate a new NEXT_DATE. The end boundary is inclusive. When no permitted occurrence remains to be generated, new automatic job scheduling is blocked in both modes.
RRULE_COUNT Changed
When RRULE_COUNT changes, the system checks whether the positive count limit for next-date calculation has been reached.
If RRULE_COUNT 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.
SCHEDULING_MODE Changed
When SCHEDULING_MODE changes, the logic for calculating future dates changes.
Changing to Calendar-Based means that the plan follows the calendar recurrence.
Changing to Completion-Based means that the plan calculates NEXT_DATE from the completion reference described under LAST_DATE.
Because this changes the calculation logic, the system attempts to recalculate NEXT_DATE according to the selected SCHEDULING_MODE.
If NEXT_DATE changes, EARLIEST_GENERATION_DATE is recalculated as well.
Generated Work Package PLANNED_START Changed
When PLANNED_START of a generated work package is set or changed, the work package notifies the linked maintenance plan.
For calendar-based cyclic maintenance plans, this can trigger recalculation of NEXT_DATE. The system uses the planning information to continue the calendar-based recurrence.
For completion-based cyclic maintenance plans, a PLANNED_START change does not drive the recurrence in the same way. NEXT_DATE is mainly calculated after the work package is completed.
Generated Work Package Completed
When a generated work package is completed, the work package notifies the linked maintenance plan.
A work package is considered completed when:
ORGA_STATUS == 100
The system updates LAST_DATE. Completion-Based scheduling directly attempts to recalculate NEXT_DATE. Calendar-Based scheduling attempts recalculation during the subsequent plan save if LAST_DATE has changed.
For calendar-based scheduling:
- the system continues according to the calendar recurrence
- NEXT_DATE is calculated from the recurrence pattern and relevant planned or finished dates
For completion-based scheduling:
- the completion date becomes the basis for the next occurrence
- NEXT_DATE is calculated from the completion date
After NEXT_DATE is updated, EARLIEST_GENERATION_DATE is recalculated.
Work Package Generation Logic
When Is a Plan Ready to Create a Work Package?
Automatic generation consists of job scheduling followed by later execution. The plan validity, status, automatic generation, due-date, recurrence-limit, and open work package checks below apply before scheduling. The open work package check applies only to Completion-Based scheduling. The template and replication configuration must be present when the job executes.
| Requirement | Condition | Notes |
|---|---|---|
| Plan validity | The plan must be valid. | For cyclic maintenance plans, this requires a valid RRULE, assigned LK_ASSET, and available NEXT_DATE. |
| Plan status | PLAN_STATUS == Active | Inactive plans are ignored for new automatic job scheduling. |
| Automatic generation | AUTO_CREATE must be enabled. | If disabled, no new replication job is automatically scheduled for the plan. |
| Template work package | LK_WP_TMPL must be set. | The linked work package must be a template work package. |
| Replication configuration | LK_REPLICATION_CONFIG must be set. | Required at job execution; not checked before automatic job scheduling. |
| Earliest generation date | EARLIEST_GENERATION_DATE <= current date and time | A new job may only be automatically scheduled once the earliest generation date has been reached. |
| Open work packages (Completion-Based only) | No open non-template work package may exist for the plan when automatic scheduling is checked. | There must be no non-template work package linked via LK_MAINTENANCE_PLAN where ORGA_STATUS != 100. Calendar-Based scheduling is not blocked by open work packages. |
| Recurrence limits | A positive RRULE_COUNT must not be reached, and a permitted occurrence must remain to be generated. | Applies to both scheduling modes; a retained NEXT_DATE alone does not authorize another automatic job. |
Generation rule: In Completion-Based scheduling, the open work package check prevents new automatic job scheduling while an open non-template work package exists. This check alone does not guarantee protection against multiple queued jobs or concurrent execution.
The standard replication job checks that the template and replication configuration are present, but does not repeat the plan validity, status, AUTO_CREATE, due-date, or open work package checks during execution. Changing these settings must not be assumed to cancel an already scheduled job.
Open point: Whether an already scheduled job must recheck recurrence limits if they become exhausted before execution remains to be defined.
Round Work Package Generation
A round maintenance plan creates a main work package for the round.
After the main work package has been created, the system processes the maintenance plans linked via SYSREL_ROUND_RELATION.
For each linked child maintenance plan, the system creates an additional work package.
These additional generated work packages are assigned to the main round work package via TASK_OWNER.
For child plans used in a round, the system does not care whether the child plan:
- has PLAN_STATUS == Active
- has AUTO_CREATE == true
- has a valid RRULE
- has a valid NEXT_DATE
- is due based on its own EARLIEST_GENERATION_DATE
Rule: The round plan controls the timing. The child plans define what additional work packages should be created as part of the round.
