Template:- OASIS:Message

The Message template describes how to represent a message and the objects it contains. Each object that can be contained in a message inherits from MessageContentObject.

The Message will refer to an exchange context library. This is an OWL ontology that provides all the reference data referenced from the data in the message. This OWL ontology will typically import from multiple OWL ontologies such as the standard PLCS OWL ontology http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl.

The SysML Block Definition diagram in Figure 1 shows how Message is represented in the PLCS PSM.

Template Properties

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

References:
DEXVersion [1] (Block: Ap239Ap233Psm:ExternalOwlClass)
The name of the class used to classify the message as a container of data according to a given DEX version.

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

rule.Ap239Ap233Psm.ExternalOwlClass.ur1
Constraint: ur1
Specification: (OCL2.0)
ExternalOwlClass::allInstances()->isUnique(class)
The reference data used in Block: Ap239Ap233Psm:ExternalOwlClass is restricted as follows:
RDL constraint 1:
The reference data for:
ExternalOwlClass.class
is restricted to one of the following classes or a subclass of one of them:
exchangeContext [1] (Block: Ap239Ap233Psm:ExchangeContextClassLibrary)
The OWL class library used to provide the exchange context for the message.

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

rule.Ap239Ap233Psm.ExternalOwlClass.ur1
Constraint: UR1
Specification: (OCL2.0)
ExchangeContextClassLibrary::allInstances()->isUnique(libraryId)
createdBy [1] (Block: Ap239Ap233Psm:MessageDefinerSelect)
The organization or person in organization that created the message.
content [0..*] (Block: Ap239Ap233Psm:MessageContentSelect)
The objects contained within the message.
classifications [0..*] (Block: Ap239Ap233Psm:ExternalOwlClass)
The optional additional classifications applied to the message.

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

rule.Ap239Ap233Psm.ExternalOwlClass.ur1
Constraint: ur1
Specification: (OCL2.0)
ExternalOwlClass::allInstances()->isUnique(class)
The reference data used in Block: Ap239Ap233Psm:ExternalOwlClass is restricted as follows:
RDL constraint 1:
The reference data for:
ExternalOwlClass.class
is restricted to classes that are subclasses of the following class:
Parts:
ids [1..*] (Template: OASIS:Identification)
The identifiers assigned to the message.
The reference data used in Template: OASIS:Identification is restricted as follows:
RDL constraint 1:
The ids must be classified as a message identification code.
The reference data for:
OASIS:Identification.role -> ExternalOwlClass.class
is restricted to the following class or a subclass:
descriptions [0..*] (Template: OASIS:Descriptor)
The descriptions optionally assigned to the message.
Values:
dateCreated [0..1] (Block: Ap239Ap233Psm:DateTimeString)
The date or date/time when the message was created.

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')