Book a Demo

Author Topic: using UML profile  (Read 14868 times)

omran

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
using UML profile
« on: November 04, 2009, 12:38:15 am »
Dears,

I have created a UML2 profile named "newprofile" with a stereotype "ompartition" and a tagged value for this stereotype named "partitiontype".
I  saved/exported the profile ..then I import it
when I create new class named "product" based "ompartition" stereotype, I did not see the "partitiontype" attribute.
Is this a normal case?
what is the need steps to make the tagged values of a stereotype to be moved to the new classed that uses this stereotype?

Regards
Omran

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: using UML profile
« Reply #1 on: November 04, 2009, 10:28:55 am »
I'm guessing that you created an unstereotyped class and then set its stereotype using the Properties dialog. Doing it this way won't add the tagged values. Instead, try dragging the stereotype from the Toolbox onto the class element (in a diagram).
The Sparx Team
[email protected]

omran

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: using UML profile
« Reply #2 on: November 04, 2009, 08:49:05 pm »
Dear,

I repeat the process of creating profile step by step and created a stereotyped class by darging the stereotype from the resource window and try the same process from the "newprofile" toolbox on the left pallet but aslways I got a sterotyped class without its related tagged values.
I am realy fighting to see if I am doing foolish step but I followed the instructions on EA help exactly.

I also created a class element then darg and drop the needed stereotype, I answer yes to apply the stereotype to the class element but also get the same result :'(

please what is the missing magic touch that I have to do?

Regards,
Omran

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: using UML profile
« Reply #3 on: November 05, 2009, 08:56:51 am »
Quote
I have created a UML2 profile named "newprofile" with a stereotype "ompartition" and a tagged value for this stereotype named "partitiontype".
This might be your problem here. You say you have given your «stereotype» class a tagged value named "partitiontype". You actually need to give it an attribute named "partitiontype", then save and re-import your profile. The attributes define the tagged values you want to create. See this page for more:

http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/addingelementsandmetaclass.html
The Sparx Team
[email protected]