Book a Demo

Author Topic: Instance Classifier deletion not detected.  (Read 3704 times)

ChrisBD

  • EA User
  • **
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Instance Classifier deletion not detected.
« on: May 24, 2010, 10:55:35 pm »
Noticed whilst running tests in Version 8.
I shall raise a bug report on this, but if you create an instance of a Classifier and then delete the classifier the instance remains but no errors are detected either by the Project Integrity check nor the Model Validation

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Instance Classifier deletion not detected.
« Reply #1 on: May 25, 2010, 08:30:52 am »
The instance is preserved in the model in part because you could restore the classifier by importing XMI.

ChrisBD

  • EA User
  • **
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: Instance Classifier deletion not detected.
« Reply #2 on: May 25, 2010, 08:14:30 pm »
If the classifier hasbeen deleted from the model then how can you import it back from XMI?
Where would the data come from and how would I know that it has been deleted in the first place?

As it stands once the classifier has been deleted, attributes and properites are no longer accesible from the instance, so I can't even rebuild the classifier by hand.

Even if the classifier is kept under version control then by the time that you discover that it has been deleted, importing it back would be meaningless as the original references could have changed.