Book a Demo

Author Topic: Custom profile, constraints and validation  (Read 5715 times)

bluemanifold

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Custom profile, constraints and validation
« on: October 25, 2007, 12:16:49 am »
I'm new to EA (having previously used Rose) and am investigating profiles. I have created a very simple profile: Stereotype A extends Classifier and it includes the following OCL constraint... inv: self.allAttributes->forAll(multiplicity.range.lower = 1 and multiplicity.range.upper = 1). All well & good - this OCL statement is validated by EA.  I save the profile, create a new project and import the profile.  I then drag stereotype A into my class diagram and a new class is created.  If I now try to validate the class, I get the following message: MVR040001 - warning (Class3 (Class)): OCL violation: inv: self.allAttributes->forAll(multiplicity.range.lower = 1 and multiplicity.range.upper = 1).  Why?  There are no attributes.  When I do add attributes with the correct multiplicity, I still get this warning message. Am I doing something wrong?  Cheers.
???

thomaskilian

  • Guest
Re: Custom profile, constraints and validation
« Reply #1 on: October 25, 2007, 01:28:03 am »
OCL validation does not seem that perfect (although claimed to be by Sparx). You might send a bug report if you think the result is wrong. Perhaps you could wait a few days for others to post as I'm not an OCL spcialist.