Book a Demo

Author Topic: Stereotypes and predefined Attributes and OCL  (Read 3361 times)

SaschaR

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Stereotypes and predefined Attributes and OCL
« on: March 07, 2007, 02:56:12 am »
Hi,
I just created a profile, that contains a stereotype and extends the metaclass "activity". I created a shape script, that change the appearance.
Now I want to add attributes to the stereotype (like an string id) , that should be predefined in every stereotype, that I use from the toolbar in any diagram. But when I define an attribute at the stereotype in the profile view, it isnt transformed to the diagram, where I use the stereotype. I know I can make tagged values, but thats not really what I want, because I want to be sure, that everyone who use this stereotype also use the attribute. What can I do about it?

Another issue is : Does OCL works with EA? I tried to force, that a stereotype has alwasy a link to e.g. a use-case diagram and tried this with the ocl expression inv: self.UMLDiagram->size()>1 but it didnt work?
« Last Edit: March 07, 2007, 04:24:54 am by SaschaR »

thomaskilian

  • Guest
Re: Stereotypes and predefined Attributes and OCL
« Reply #1 on: March 07, 2007, 12:45:12 pm »
Only an answer to your 2nd question: No, not really. You can write OCL and EA does some kind of syntax checking on OCL. But (obviously) no semantics. Although they claimed it to work.

SaschaR

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Stereotypes and predefined Attributes and OCL
« Reply #2 on: March 07, 2007, 11:08:36 pm »
Quote
Only an answer to your 2nd question: No, not really. You can write OCL and EA does some kind of syntax checking on OCL. But (obviously) no semantics. Although they claimed it to work.


Thank you for your answer. Maybe another question : Is it planned to implement a wider support for OCL in  the near future? And is a feature request a way to speed things up?

thomaskilian

  • Guest
Re: Stereotypes and predefined Attributes and OCL
« Reply #3 on: March 08, 2007, 08:03:45 am »
You have to ask Sparx directly. You can post a feature request on the appropriate board and additionally via registered user request page. There are quite some people using OCL but I don't know to which extend. Maybe you browse a bit through the existing threads.