Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ian Mitchell on January 20, 2022, 10:37:04 pm
-
I'm importing a load of archicture data, and it all looks fine, except for one tiny detail.
When I create Archimate 'aggregation' connectors, they don't look right in diagrams: they just look like Associations.
I've tried creating one of these connectors manually, and the underlying data looks the same: but manual ones have the little aggregation diamonds which I want.
Diving in the database, I just can't see where the two connectors (generated and manually created) are diferent:
- Stereotypes are both Archimate_Aggregation, and in the UI, they both show as Archimate3::Archimate_Aggregation
- Directions both 'Unspecified'
- Entries in t_xref are both @STEREO;Name=ArchiMate_Aggregation;FQName=ArchiMate3::ArchiMate_Aggregation;@ENDSTEREO; which I guess is why they look the same in the UI
I tried creating Archimate3::Archimate_Assignment connectors instead, just as a test, and these looked just fine when generated, with the correct Archimate notation.
I'm totally out of ideas as to how to make them look right. Re-doing them maunally is not possible - I have 1000s of them.
Any ideas?
-
Hi Ian,
have you checked that the destination aggregation field is set correctly in the imports? We converted all our old-style Aggregation and Composition relationships to be based on Associations to line up with modern / best practices and we had to set the aggregation field via automation (SQL queries in our case).
HTH,
Paolo
-
Perfect - I didn't notice the little field called 'SourceIsAggregate', which was 0 for the imported links, but 1 for the 'correct' connector.
Thanks Paolo - life saver!
..that column doesn't look to be accessible via the API, so I guess I'll need some SQl to fix it. Grrrrr
-
It is accessible through the API. It's something like: EA.Connector.ClientEnd.AggregationKind
Set it to 1 or 2 to indicate aggregation/composition
Geert
-
Thanks Geert!
-
Ian, would you be willing to share your script? Did you find it necessary to change both ClientEnd and SupplierEnd? I'm finding that Aggregation relationships created under an older version of EA need to be updated.