Book a Demo

Author Topic: Generate RTF - linked element feature  (Read 2887 times)

Chris Tatem

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Generate RTF - linked element feature
« on: July 28, 2010, 11:08:40 pm »
I have created a set of Classes.  I have created associations between them and am using the linked element feature on the connections to specify an Attribute on one end of the connection.  That all seems to work fine, at least in the diagram.  It's interesting to note that I can find "anywhere" the details for this connection.  The Class Links (tab) shows the class to class connection, the association properties is plain - no mention of the linked element.

While I can live with that, I am trying to generate "a report" that would listen these connections, using the RTF Generator.  It sort of works, however IF there is lined element on one end of the connector, I can't seem to get the Element Name to display, just the linked element name.  For example, Class1 -> Class2.linked element to Attribute1... the report writer will generate:
Connector / (source element) Class1 / (target element) (linked element) Attribute1, the Class2 is not there.  If there is no connection to a linked element, you would get Connector / (source element) Class1 / (target element) Class2.

What am I doing wrong?

here is the section of the template
element >
{Element.ParentPackage}.{Element.Name[ch25981]
connector >
 connects {Connector.Direction} {Connector.Stereotype} {Connector.Name[ch26237]
source >
element >
from {Element.ParentPackage}.{Element.Name}
< element
linked feature >
({LinkedSourceFeature.Name})
< linked feature
< source
target >
element >
 to {Element.ParentPackage}.{Element.Name[ch8317]
< element
linked feature >
({LinkedTargetFeature.Name})
< linked feature
< target
< connector
child elements >
< child elements
< element

Chris