Author Topic: Connector.direction still not updating  (Read 1801 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Connector.direction still not updating
« 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 ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Connector.direction still not updating
« Reply #1 on: January 13, 2023, 10:45:40 pm »
..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.
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Connector.direction still not updating
« Reply #2 on: January 14, 2023, 02:27:45 am »
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
« Last Edit: January 14, 2023, 02:30:33 am by Ian Mitchell »
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13287
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Connector.direction still not updating
« Reply #3 on: January 14, 2023, 02:48:50 am »
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