1. Home
  2. Docs
  3. Chapter 23. Document Production
  4. 5. Writing Doc. Composer element templates
  5. Looping (Connector)

Looping (Connector)

Download PDF

<ForEachSimpleRelationship>

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

The following table lists the available 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 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
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