Скачиваний:
25
Добавлен:
28.01.2021
Размер:
7.15 Mб
Скачать

Table 8.4 – Import XML schema

<xsd:element name="import" type="tImport"/> <xsd:complexType name="tImport">

<xsd:attribute name="namespace" type="xsd:anyURI" use="required"/> <xsd:attribute name="location" type="xsd:string" use="required"/> <xsd:attribute name="importType" type="xsd:anyURI" use="required"/>

</xsd:complexType>

8.3Foundation

The Foundation package contains classes that are shared among other packages in the Core (see Figure 8.5) of an abstract syntax model.

Figure 8.5 – Classes in the Foundation package

Business Process Model and Notation (BPMN), v2.0.2

53

8.3.1Base Element

BaseElement is the abstract super class for most BPMN elements. It provides the attributes id and documentation, which other elements will inherit.

Table 8.5 presents the attributes and model associations for the BaseElement.

Table 8.5 – BaseElement attributes and model associations

Attribute Name

Description/Usage

 

 

id: string

This attribute is used to uniquely identify BPMN elements. The id is

 

REQUIRED if this element is referenced or intended to be referenced by

 

something else. If the element is not currently referenced and is never

 

intended to be referenced, the id MAY be omitted.

documentation:

This attribute is used to annotate the BPMN element, such as descriptions

Documentation [0..*]

and other documentation.

 

 

extensionDefinitions:

This attribute is used to attach additional attributes and associations to any

ExtensionDefinition [0..*]

BaseElement. This association is not applicable when the XML schema

 

interchange is used, since the XSD mechanisms for supporting

 

anyAttribute and any element already satisfy this requirement. See page

 

57 for additional information on extensibility.

 

 

extensionValues:

This attribute is used to provide values for extended attributes and model

ExtensionAttributeValue [0..*]

associations. This association is not applicable when the XML schema

 

interchange is used, since the XSD mechanisms for supporting

 

anyAttribute and any element already satisfy this requirement. See page

 

55 for additional information on extensibility.

 

 

8.3.2Documentation

All BPMN elements that inherit from the BaseElement will have the capability, through the Documentation element, to have one (1) or more text descriptions of that element.

The Documentation element inherits the attributes and model associations of BaseElement (see Table 8.5). Table 8.6 presents the additional attributes of the Documentation element.

Table 8.6 – Documentation attributes

Attribute Name

Description/Usage

 

 

text: string

This attribute is used to capture the text descriptions of a BPMN element.

 

 

textFormat: string

This attribute identifies the format of the text. It MUST follow the mime-type

 

format. The default is "text/plain."

 

 

In the BPMN schema, the tDocumentation complexType does not contain a text attribute or element. Instead, the documentation text is expected to appear in the body of the documentation element. For example:

54

Business Process Model and Notation (BPMN), v2.0.2