Author Topic: OCL validation in EA  (Read 542 times)


  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
OCL validation in EA
« on: June 30, 2012, 04:42:47 am »
I have created an EA plugin which is based on a UML profile. Now I would like to add OCL constraints to the profile that could be checked on instances of a model using the profile.

I did notice that one could attach OCL constraints to individual elements in a model but that is not what we want, as we want to attach the constraints to the meta-class and thus be able to check all its instances in a model.

Is this possible in EA? Or do I have to extract the model to an external OCL validation tool?

And is it possible to specify OCL rules in any of the MDG files?


  • EA Guru
  • *****
  • Posts: 9684
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: OCL validation in EA
« Reply #1 on: June 30, 2012, 05:02:05 am »
AFAIK you can not do any OCL validation in EA. It just checks the syntax of the OCL. EA has some build-in model check but that does not respect any OCL. So you're bound to some external OCL checker.