Looping (Connector)

<ForEachSimpleRelationship>

Retrieve SimpleRelationship elements from model element or connector from diagram element.

The following table lists the available attributes of <ForEachSimpleRelationship>.

Name Description/Usage Required?
modelType : string
Filter relationship by specified model element type (e.g. Generalization). Note that not all kind of relationship belongs to simple relationship. Here are the possible types of simple relationship:

Abstraction, ActivityObjectFlow, AnalysisComposition, AnalysisDiagramTransitor, AnalysisParentChild, AnalysisReference, AnalysisRelationship, AnalysisSubDiagram, AnalysisTransitor,  AnalysisUsed, AnalysisView, Anchor, ArchiMateAccess, ArchiMateAggregation, ArchiMateAssignment, ArchiMateAssociation, ArchiMateCommunicationPath, ArchiMateFlow, ArchiMateNetwork, ArchiMateProvide, ArchiMateRealization, ArchiMateRequire, ArchiMateSpecialization, ArchiMateTriggering, ArchiMateUsedBy, AssociationClass, BPAssociation, BPDataAssociation, BPMessageFlow, BPSequenceFlow, BindingDependency, BusinessRuleAssociation, Constraint, ControlFlow, ConversationLink, DBForeignKey, DFDataFlow, Dependency, Deployment, EPCControlFlow, EPCInformationFlow, EPCOrganizationUnitAssignment, ExceptionHandler, Extend, Generalization, GenericConnector, GlossaryFactTypeAssociation, Include, InteractionDiagramDurationConstraint, Link, MindConnector, MindLink, OCLine, ObjectFlow, PMProcessLink, Permission, RQRefine, RQTrace, Realization, RequirementDerive, Satisfy, Transition, Transition2, Usage, Verify
Optional
modelTypes : string
Filter relationships by modelTypes. If @modelType is defined, @modelTypes will be ignored.
Optional
direction

{all | from | to}
Filter relationship by direction.
Optional
ignoreLastSeparator : boolean = false

Ignore the break for the last element of current for-each loop.

Break can be <ParagraphBreak> or <StaticText @content= "\n" or ",">.

Optional
breakString : string Insert a string between model elements of current for-each.
Optional
Attributes of <ForEachSimpleRelationship>

<ForEachRelationshipEnd>

Retrieve the from or to end of an association.

The following table lists the available attributes of <ForEachRelationshipEnd>.

Name Description/Usage Required?
modelType : string
Filter relationship end by specific model element type. Optional
modelTypes : string
Filter relationships by modelTypes. If @modelType is defined, @modelTypes will be ignored.
Optional
endPointer

{all | from | to | both | self | other}
Filter relationship ends based on the way they are attached to the querying element. For example, if 'from' is specified, only relationships that take the querying element as the source (i.e. from end) will be chosen.
Optional
ignoreLastSeparator : boolean

Ignore the break for the last element of current for-each loop.

Optional
breakString : string Insert a string between model elements of current for-each.
Optional
Attributes of <ForEachRelationshipEnd>

Related Resources

The following resources may help you to learn more about the topic discussed in this page.

 
4. Looping (Non Connector) Table of Contents 6. Sorting in Loop

We use cookies to offer you a better experience. By visiting our website, you agree to the use of cookies as described in our Cookie Policy.OK