Book a Demo

Author Topic: Can I apply a profile to existing model elements?  (Read 2861 times)

bobmehew

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Can I apply a profile to existing model elements?
« on: April 05, 2005, 04:13:55 am »
Hi there,

I have built a profile for the purpose of using tagged values to adhere to my clients documentation standards. To do this I built a stereotype and added attributes, and then added a Usecase type metaclass, connecting the two with an extends relationship. I then saved the profile and imported it into my project.

All this works fine and is as documented. I can add a new use case from the profile and the attributes defined in the stereotype are available as tagged values. So far so good.

But, I have existing model elements that I want to use, and pick up the tagged values from the stereotype. When I open the use case and set the stereotype to the new one from the profile, then the tag values I added to the stereotype do not appear. Is there a way I can bring the tagged values through onto an existing model element? Am I missing something or do I need to re-create all of the model elements?

Thanks,

Bob Mehew ???

thomaskilian

  • Guest
Re: Can I apply a profile to existing model elemen
« Reply #1 on: April 05, 2005, 04:49:08 am »
Hi Bob,
I think the profile concept is still in a beginning state. It would be useful to "profile" any elements with the created profile, not just dragging a new one to a diagram. So the answer is for now: you have to manually add tags to the existing elements. You can do so by using ad hoc tags (only strings) or you have to additionally define them via the tags editor.

bobmehew

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Can I apply a profile to existing model elemen
« Reply #2 on: April 05, 2005, 04:51:45 am »
Many thanks Thomas for your quick reply - I suspected as much!

Bob

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Can I apply a profile to existing model elemen
« Reply #3 on: April 05, 2005, 04:25:54 pm »
Bob,

Add the stereotype to your existing use cases, then go to the Resource View, right-click on the stereotype in the UML Profiles folder and select "Synch Tagged Values and Constraints". This will bring in all the tags for the all use cases in the model with your chosen stereotype.

HTH

Neil
The Sparx Team
[email protected]

thomaskilian

  • Guest
Re: Can I apply a profile to existing model elemen
« Reply #4 on: April 06, 2005, 02:53:55 am »
Hi Neil,
I was not aware of that feature. However, I tried this with an Issue and it did not work. I guess this is due to the fact, that Issues do not have a stereotype but a "Type" (where the stereotype goes whenever I create a profiled Issue) ???