Is there any documentation on “relationshipendendrelationship” beyond the example in the writer’s guide, etc ? I have associations between SysML blocks, and the example does find the links (after I fixed the syntax error in the example), but it doesn’t seem to be able to find the name of either end. I don’t even get “Undefined” as a result of the property name directive.
I updated the example as shown below, and ran it successfully with a class diagram derived from the UML Association vs. Aggregation vs. Composition page.
<DiagramBaseInitiationBlock>
<IterationBlock modelType="Class">
<HasRelationshipChecker modelType="Association" flag="true">
<Property property="name"/>
<Text>: </Text>
<ForEachRelationshipEnd modelType="AssociationEnd" endPointer="self">
<RelationshipEndEndRelationship>
<FromEnd>
<Text> from </Text>
<Property property="name"/>
</FromEnd>
<ToEnd>
<Text> to </Text>
<Property property="name"/>
<Text>, </Text>
</ToEnd>
</RelationshipEndEndRelationship>
</ForEachRelationshipEnd>
<ParagraphBreak/>
</HasRelationshipChecker>
<HasRelationshipChecker modelType="Generalization" direction="all">
<Property property="name"/>
<Text>: </Text>
<ForEachSimpleRelationship type="Generalization">
<ModelElementProperty property="from">
<Text>from </Text>
<Property property="name"/>
</ModelElementProperty>
<ModelElementProperty property="to">
<Text> to </Text>
<Property property="name"/>
<Text>, </Text>
</ModelElementProperty>
</ForEachSimpleRelationship>
<ParagraphBreak/>
</HasRelationshipChecker>
</IterationBlock>
</DiagramBaseInitiationBlock>
The associated results:
Bank Account: from Bank Account to Savings Account, from Bank Account to Credit Card Account,
Car: from Car to Wheel, from Car to Engine,
Credit Card Account: from Bank Account to Credit Card Account,
Engine: from Car to Engine, from EngineInspection to Engine,
EngineInspection: from EngineInspection to Engine,
Hand: from Person to Hand,
Head: from Person to Head,
Instructor: from Student to Instructor,
Leg: from Person to Leg,
Person: from Person to Head, from Person to Hand, from Person to Leg,
Savings Account: from Bank Account to Savings Account,
Student: from Student to Instructor,
Wheel: from Car to Wheel,
