Book a Demo

Author Topic: Relationship Matrix: Can't always delete relationship  (Read 6310 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Relationship Matrix: Can't always delete relationship
« on: September 07, 2017, 05:32:53 pm »
It turns out that if the Direction is set to both, the delete relationship functionality is disabled.  At a minimum, this should be mentioned in the Help.  Better still, just as one can Add Source->Target or Target->Source, the appropriate cell contents should be available for deletion.

Reported,
Paolo
« Last Edit: September 07, 2017, 05:43:06 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Relationship Matrix: Can't always delete relationship
« Reply #1 on: September 08, 2017, 11:17:15 am »
Ummm... it is mentioned in the Help. Item 2 in the table 'Modify or delete a relationship in the Relationship Matrix', in the topic 'Creating and Deleting Relationships' in the Relationship Matrix chapter.  This text:

If you have selected 'Delete relationship', Enterprise Architect prompts you to confirm this action.
Click on the Yes button.
The 'Delete relationship' option is not available if:
  • The source element (that is, the owner) is locked
  • You have selected 'Both' in the 'Direction' field - you are effectively trying to delete half a relationship

See   http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/model_navigation/modifyingrelationshipsinmat.html
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Relationship Matrix: Can't always delete relationship
« Reply #2 on: September 08, 2017, 04:45:28 pm »
Ummm... it is mentioned in the Help. Item 2 in the table 'Modify or delete a relationship in the Relationship Matrix', in the topic 'Creating and Deleting Relationships' in the Relationship Matrix chapter. 
[SNIP]
Oops, partly my bad.
Somehow missed the text.

However, the text (and consequently, the functionality) is incorrect.  The Relationship Matrix forces you to have two separate relationships - since it ONLY takes into account directionality and not navigability.   Consequently, since having either of the relationships only present is a valid specification, you should still be allowed to purge them individually even if both exist.

When you have two individual relationships purging one, cannot be "effectively deleting half of the relationship".

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!