Java Reference
In-Depth Information
Connections
We must define five
Link Mapping
elements, with all but the Message Flow
mapping following the pattern given. For Message Flow, only one type exists, so
there is no need to add the child
Constraint
and
Feature Seq Initializer
elements as with the rest. Each link maps to the
Connection
class in the domain
element, with our usual
Containment Feature
of the
Process
elements:Element
reference. A
Source Feature
and
Target Feature
are
specified, mapping to the
source:Element
and
target:Element
references,
respectively. The appropriate
isDirected
constraint and initializer are set for
the
Association
mappings, while the
isDefault
property is checked or ini-
tialized for the
Sequence Flow
mappings. Each
Link Mapping
has an exter-
nal
Feature Label Mapping
for the
name
attribute, as seen in Table 4-30.
Table 4-30
Scenario Link Mappings
Element
Property
Value
Mapping
Link Mapping
Containment Feature
Process.elements : Element
Element
Association -> Connection
Source Feature
Connection.source : Element
Target Feature
Connection.target : Element
Diagram Link
Connection DirectedAssociation
Tool
Creation Tool Directed Association
Constraint
Body
isDirected = true
Feature Seq Initializer
Element Class
Association -> Connection
Feature Value Spec
Body
true
Feature
Association.isDirected : EBoolean
Data Object
The Data Object mapping is the most basic, with just a
Node Mapping
for the
DataObject
domain element to its corresponding
DataObject
node and
Creation Tool
, along with a
Feature Label Mapping
for its
name:
EString
attribute.
Search WWH ::
Custom Search