Template:- SwedishDefence:PerformedMaintenance
The PerformedMaintenance template describes how to represent that a maintenance has started but not necessarily finished.
Template Properties

The following SysML Part, Reference, and Value properties are defined for this template:

References:
itemConsumed [1..*] (Template: SwedishDefence:ItemQuantity)
Relationship to resources that are consumed in the maintenance.
itemInput [0..*] (Template: SwedishDefence:ItemDefinition)
Relationship to item definitions which are the input e.g. design of the spare parts for executing the maintenance.
itemOutput [0..*] (Template: SwedishDefence:ItemDefinition)
Relationship to item definitions which are the output e.g. designed of the parts are replaced when executing the maintenance.
individualInput [1] (Template: SwedishDefence:ItemIndividual)
Relationship to individual item of supplies which are the input e.g. spare parts for executing the maintenance.
individualOutput [1] (Template: SwedishDefence:ItemIndividual)
Resulting Individual.
methodUsed [0..1] (Template: SwedishDefence:TaskMethod)
Relationship to a task method that is utilized for guiding the execution of the maintenance.
workOrder [1] (Template: SwedishDefence:MaintenanceOrder)
Relationship to a maintenance order that requests for the performed maintenance.
personReporting [0..1] (Block: Ap239Ap233Psm:PersonInOrganization)
The person who executed the performed maintenance.
facilitiesUsed [0..*] (Template: SwedishDefence:FacilityDefinition)
Relationship to facilities that are utilized for executing the maintenance.
competenceUsed [0..*] (Template: SwedishDefence:Competence)
Relationship to competences that are required for executing the maintenance.
Parts:
performedMaintenanceId [1] (Template: OASIS:Identification)
Identifier of the performed maintenance.
performedMaintenanceName [0..1] (Template: OASIS:Name)
Maintenance carried out.
Values:
startTime [0..1] (Block: Ap239Ap233Psm:DateTimeString)
The time when the maintenance starts.

The following constraint, normally a uniqueness constraint, is applicable when instantiating the DateTimeString:

rule.Ap239Ap233Psm.ExternalOwlClass.ur1
Constraint: XSDDATETIME
Specification: (OCL2.0)
self.matches('[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')
endTime [0..1] (Block: Ap239Ap233Psm:DateTimeString)
The time when the maintenance ends.

The following constraint, normally a uniqueness constraint, is applicable when instantiating the DateTimeString:

rule.Ap239Ap233Psm.ExternalOwlClass.ur1
Constraint: XSDDATETIME
Specification: (OCL2.0)
self.matches('[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')