Maintenance Rules

The Maintenance Rules model (users.%.models.maintenanceRules) is part of the Iotellect Monitoring MES Core module. Each production entity links to a dedicated Maintenance Rules model that defines standard service and maintenance logic.
These rules apply automatically during the work order scheduling process.

The maintenanceRules relative model is used within the context of work order generation.
It defines conditions and sequencing for creating non-production work orders (maintenance, inspection, or calibration tasks).

Field

Type

Description

useCondition

String

Defines the maintenance condition — a Boolean expression that determines whether a non-production work order should be created. The expression is evaluated during scheduling and can reference the following environment variables:

  • {schedule} — schedule of the production entity;

  • {WO} — main production work order;

  • {NPWO} — existing non-production work orders of the same entity.

The default evaluation context is the current production entity

sequenceExpression

String

Defines the execution order of non-production work orders. The expression must return an integer representing the sequence index. Work orders with negative values are scheduled before the main production order; those with positive values are scheduled after, in ascending order. Environment variables:

  • {schedule} — the schedule of the production entity.

  • {WO} — the main production work order.

  • {NPWO} — existing non-production work orders of the same entity.

Default context: current production entity

segment

String

Context of the non-production segment

Core Maintenance Functions

Function:

getNonProductionWOs

Permissions:

Observer access or higher.

Input records:

1

Input format:

Field

Type

Description

WOs

Data Table

Schedule of the production entity.

WO

Data Table

Main production work order — the job order around which non-production work orders may be created.

Output records:

0...unlimited

Output format:

Field

Type

Description

segment

String

Context of the non-production work order segment

sequence

Integer

Position of the non-production work order in the schedule relative to the main production order.

Was this page helpful?