Book a Demo

Author Topic: OCL constraints validation broken  (Read 2349 times)

AlmaMater

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
OCL constraints validation broken
« on: November 11, 2012, 11:38:25 pm »
The OCL constraint validation is acting weird for me.
I get the OCL violation message everytime I validate the model no matter  what I actually type in. I get that even for something like inv: self=self or inv: 1>0 which are obviously always true.
When I save the model and restart EA it works and I get no violation messages for rules returning true until I change them, then I can't validate them anymore and need to restart again in order to verify any new/updated OCL constraint.

I am currently using the 9.3 trial if it's of any help. I really need to get this working ASAP so any help is greatly appreciated.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: OCL constraints validation broken
« Reply #1 on: November 12, 2012, 03:20:10 am »
EA actually can't execute OCL. It only validates the syntax of the OCL. Seems to be a common misunderstanding. If you need to validate your model against OCL you need to do that externally. I have no idea which tool can be used for that.

q.

P.S. Google revealed this: http://www.empowertec.de/blog/2007/01/15/ocl-support-in-enterprise-architect/
« Last Edit: November 12, 2012, 03:25:38 am by qwerty »