Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ian Mitchell on January 13, 2023, 10:10:37 pm
-
This issue was reported in 2007, for EA V7, and still seems not to be fixed.
There is a work-around : : http://sparxsystems.com/forums/smf/index.php?topic=1470.0
Makes me wonder why there is still no fix.
Is there some reason for this? Might a single update to the connector.direction string result in an inconsistency if all the ConnectorEnds are not set correctly as well ?
-
..and yes, I have seen Geert's comments in https://sparxsystems.com/forums/smf/index.php/topic,38665.msg240114.html#msg240114, but I'm no closer to having a reliable way to set connector.direction.
-
Finally figured this out.
It seems that the updates to the connector.ClientEnd and connector.SupplierEnd need to be done in that order.
Do it in the opposite order (supplierEnd THEN clientEnd), and mostly nothing gets updated.
Three hours of my life I will never get back. Sigh.
Oh, and a request to @Sparx - please can you start replacing these literal strings with enums? Just saves falling-over with spelling mistakes. Which don't return errors. Grrrr
-
Finally figured this out.
It seems that the updates to the connector.ClientEnd and connector.SupplierEnd need to be done in that order.
Do it in the opposite order (supplierEnd THEN clientEnd), and mostly nothing gets updated.
Three hours of my life I will never get back. Sigh.
Oh, and a request to @Sparx - please can you start replacing these literal strings with enums? Just saves falling-over with spelling mistakes. Which don't return errors. Grrrr
and then there's the Connector.Update which might also save ClientEnd and SupplierEnd; you might not even need to save the ends... I don't remember exactly, only that it's quite a mess.
Geert