Dear all,
I need an explanation about the customization of the class diagram.
I want to create an xml for the report writer.
The output that I expected is the list of the associations between the classes…
how can I do this?

I have a class A end class B
and an association named xxx.
I wrote this piece of code

In my mind I expected a simple table with a row similar to:
Name: | XXX

but the output is different… infact I see
only the column with Name: and nothing else!

Could you please help me??

Thanks in advance

Hi user,

Thanks for your post. I’ve forwarded the issue to our engineers to investigate. If there is any feedback, I’ll notify you immediately.

Best regards,
Lilian Wong

Hi user,

Sorry for my late response. <ForEachSimpleRelationship …> is used to retrieve the “Simple Relationship”, you should use <ForEachRelationshipEnd …> + to retrieve “End Relationship” (You can refer to /VPSuite/resources/Report/Default/Class/Associations.xml).

FYI, about the difference between SimpleRelationship and EndRelationship:
Both relationships have from/to models, but EndRelationship has 2 Ends between the Relationship and from/to models.

<ForEachRelationshipEnd …> will retrieve the From/To-End, use <RelationshipEndEndRelationship …> can get the EndRelationship from the End.

Parameters of :
@type: modelType of the RelationshipEnd, default is null (null means any relationshipEnd will be included)
@endPointer: the relationshipEnd refers to current model or other model. Available values: [both|self|other].

Please refer to the image below to get clearer idea. Hope this helps. If there is any further inquiry, please do not hesitate to contact me.

Best regards,
Lilian Wong