Book a Demo

Author Topic: Check that instance diagrams match class diagrams?  (Read 2314 times)

hismaimai8888

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
    • rut ham cau quan 12
Check that instance diagrams match class diagrams?
« on: November 13, 2018, 05:31:35 pm »
I have a class diagram showing associations, multiplicity, etc.

I then want to detail a scenario by creating instances of these classes. Sparx is not enforcing any of the meta-model I created, i.e. it allows me to create a "link" from an instance to any instance when what I expect is that if the meta-model does not have an association between the two classes that it would be an error to create an association between the two instances.
Công ty rut ham cau quan 12 giá rẻ dịch vụ rút hầm cầu quận 12 uy tín

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Check that instance diagrams match class diagrams?
« Reply #1 on: November 13, 2018, 06:00:26 pm »
Yes, that seems to be how EA works.

AFAIK there is nothing build-in to validate this type of thing.
You could of course write your own validation using scripting, an SQL Query, ...

If you want to get it added tot he main product you'll have to send in a feature request, but I doubt it will get a very high priority.
Object diagrams is not really used that much.

Geert