UML Profile Management
Unified Modeling Language (UML) is a general purpose modeling language which is widely used in modeling software systems. In some occasions UML may not be precise enough for modeling specific problem domain. The UML Profile is an extension mechanism for customizing the models for specific domains or platforms. This tutorial will teach you how to create customized profile in VP-UML.
- Switch to Model Explorer, right click on the project root node and select Create Profile.

- Name the profile as Vehicle Engineering Profile.

- Right click on Vehicle Engineering Profile, and then select Sub Diagrams > New Profile Diagram.

- Now you can model the profile in the profile diagram. Let's create a stereotype in the diagram.

- The Select Base Type of Stereotype dialog will be shown, which allows you to specify the type of target model element for using the stereotype you are creating. Let's select Statics > Class as the base type.

- Now a stereotype is being created in diagram. Name the stereotype as Vehicle.

- Right click on Vehicle stereotype and select Open Specification.

- Switch to Tagged Value Definitions tab and now you can define tagged values for this stereotype.

- Press the Add button and you can select the type of tagged value you want to create from the drop down menu. Let's select Floating Point Number Tag.

- Name the tagged value as speed-limit, with Default Value as 0.0.

- Repeat the steps to create the following tagged values, and press OK to close the specification dialog.

- Stereotypes can associate with each other via composition. Let's create a stereotype Body for modeling the body of a vehicle in specific. Click on the Vehicle stereotype and drag out the composition icon.

- A new stereotype Body is created, which has class specified as base type automatically.
- Besides composition, you can also create specialized stereotypes. Let's create a stereotype Pickup Trunk which is a specialized type of vehicle. Click on the Vehicle stereotype and drag out the generalization icon.

- Here is the completed profile diagram.

- Now your profile is ready to use. Let's create a class diagram and create a class Light Motor Vehicle.

- Right click on Light Motor Vehicle, and select Stereotypes > Pickup Trunk.

- Right click on Light Motor Vehicle again and select Open Specification, switch to Tagged Values tab. Now you can see the tagged values defined in Pickup Trunk stereotypes are added to Light Motor Vehicle, including tagged values from Vehicle stereotype.

- From our profile diagram the super-stereotype of Pickup Trunk is composite of various stereotypes, such as Body and Interior. We can add the tagged values associated to those stereotypes directly to Light Motor Vehicle. Press the Add button and select Body.

- A new tagged value entry for the Body stereotype has been inserted.

- Click the ... button in the Value cell of Body tagged value, the Sub-level Tagged Values dialog will be displayed. You can specify the tagged values of the Body stereotype directly here.

Related Links
- Know-how: Define and specify stereotype in BPD
Rate this Article
Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).
One Moment Please
Thanks for rating this article.
Comments (7)
written by Christian on February 23, 2010
The function to reorder the "Tagged Value Definitions" is not available. How can I rerange my list?
written by Alex on November 5, 2010
Where is this feature on VP 8.0, I can't find it?
written by Jick on November 8, 2010
UML profile support is available starting from the Standard Edition. Please make sure you are running the Standard/Professional/Enterprise Edition of VP-UML.
written by Jiri on March 8, 2011
In some UML profiles (like this one http://www.uml.org.cn/UMLSearch/UMLExampleProfiles.pdf) are used "Association" as base class. Is there a way how to achieve that in VP?
written by Jick Yeung on March 9, 2011
Hi Jiri,
Thank you for your post. I am glad to inform you that your request has been supported. To try, please update your installation to the latest patch release to get the change. For instruction, please read:
http://www.visual-paradigm.com/support/articles/update-to-latest-patch.jsp
Best regards,
Jick Yeung
written by Jiri on April 13, 2011
Thank you for your respond, I have already requested new licence key.
But I have another two questions.
1) I want to add Boolean type attribute (tagged value). Is there a way how to achieve that (if it can be done, in UML 1.x)?
2) I found something in the forum, but I still can't figure out in what state is support of OCL in regards to UML Profile modelling. I mean OCL editor, validation against OCL rules, etc.
Thank you
written by Jick Yeung on April 13, 2011
Hi Jiri,
1) Tagged value is usually be used with stereotype. When tagged value is defined for stereotype, you can define a tag in enumeration type, and restrict the selection to Yes and No.
To configure stereotype, select Tools > Configure Stereotypes... from the main menu. When editing a stereotype, open the "Tagged Value definitions" tab to define tagged values.
2) That suggestion is still under reviewing. We will reply that post if we decide to support OCL Editor. Thanks for your reminder.
Should you have any questions, please feel free to contact us again.
Best regards,
Jick Yeung