Author Topic: Improvements for tagged values  (Read 2608 times)

Stephanie

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Improvements for tagged values
« on: February 21, 2007, 09:17:20 am »
1. Sychronisation
Sychronisation can not handle the renaming of tagged values.

If an attribute name was changed and the profile is reimported and the tagged values are sychronised all elements that have the associated stereotype get the new tagged value, however the old one is not deleted. So you have to browse through all of your diagrams and delete the obsolete tagged value.

2. Applying stereotypes is not consistant
In my UML profile I extended the Meta Class "Activity Parameter".

Now as far as I have understood, I have two possibilities to apply this stereotype.

a.) create an element of type "Activity Parameter" (e.g. right click on Activty element --> Embedded Elements --> Activity Parameter) and in the field Stereotype select/fill in the custom ActivityParameter stereotype you have created in your profile or

b.) create an element of type "Activity Parameter with no indication of a stereotype. Then from your profile folder drag the stereotype on the element you have just created.

For me only b.) works a.) does not. The taged values of my activity parameter are not applied.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Improvements for tagged values
« Reply #1 on: February 21, 2007, 02:44:48 pm »
Quote
1. Sychronisation
Sychronisation can not handle the renaming of tagged values.

If an attribute name was changed and the profile is reimported and the tagged values are sychronised all elements that have the associated stereotype get the new tagged value, however the old one is not deleted. So you have to browse through all of your diagrams and delete the obsolete tagged value.

Are you sure you want the synchronization to automatically delete information from your model without asking?

Quote
2. Applying stereotypes is not consistant
In my UML profile I extended the Meta Class "Activity Parameter".

Now as far as I have understood, I have two possibilities to apply this stereotype.

a.) create an element of type "Activity Parameter" (e.g. right click on Activty element --> Embedded Elements --> Activity Parameter) and in the field Stereotype select/fill in the custom ActivityParameter stereotype you have created in your profile or

b.) create an element of type "Activity Parameter with no indication of a stereotype. Then from your profile folder drag the stereotype on the element you have just created.

For me only b.) works a.) does not. The taged values of my activity parameter are not applied.

This is intended behaviour. If you get it wrong and accidentally choose the wrong stereotype from the list box (very easily done) you could end up accidentally adding unwanted tagged values to your element. So EA requires that you change the stereotype and then synchronize to apply the tagged values. I'm not convinced that EA has it right: maybe changing a stereotype should be accompanied by an "Are you sure? That's going to add tagged values to your element, you know" message box...
The Sparx Team
[email protected]

Stephanie

  • EA User
  • **
  • Posts: 40
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Improvements for tagged values
« Reply #2 on: February 22, 2007, 12:55:30 am »
to 1.)
I see your point, IMHO it would faciliate the meta model development process. Otherwise meta modelling has to be more or less copleted before modelling can start. What about a new function doing the deletion of tagged values that do not appear in the meta model?

to 2.)I understand but what is the list box for then, if the stereotype is not applied? The message box you suggest, is a good compromise ;-)