Book a Demo

Author Topic: OCL Constraints  (Read 3489 times)

krizz

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
OCL Constraints
« on: May 08, 2009, 12:02:16 am »
I am using an UML Profile, which I defined in Enterprise Architect.
Is there a way in EA to add OCL constraints to that profile?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: OCL Constraints
« Reply #1 on: May 08, 2009, 09:53:06 pm »
Yes,

In the EA help index - at least for EA 7.5 build 844; it might be in a different place for earlier versions, but I think it will still work - look up Profile | Constraints. You create these on a per-stereotype basis.

In essence you are defining class constraints as you normally would, but the 'class' involved is a stereotype you define in your profile.

As with anywhere you use OCL with EA, your results may not be quite what you expect. Play around a bit if things don't appear to work perfectly the first few times. Sometimes it is more a question of how you do something (in EA) than what you do. Things often become easier once you start doing things the way EA expects.
No, you can't have it!

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: OCL Constraints
« Reply #2 on: May 09, 2009, 10:06:34 pm »
Hello

is that a unique experience to accompany the unique interface:)

Kevin

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: OCL Constraints
« Reply #3 on: May 11, 2009, 12:55:30 am »
More likely coincidence than accompaniment...
No, you can't have it!