Maintenance Rules

Each production entity links to a dedicated Maintenance Rules relative model (users.%.models.maintenanceRules), which is part of Iotellect Monitoring MES Core and describes the standard maintenance rules for production activities during work order execution. A single variable, Maintenance Rules (maintenanceRules), from this model is used during automatic scheduling.

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

Get Non-Production Work Orders

The function returns a list of non-production work order segments that must be issued before and/or after the main production work order.

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?