Book a Demo

Author Topic: Easy way to save stereotypes  (Read 6654 times)

rasmusthog

  • Guest
Easy way to save stereotypes
« on: October 03, 2016, 05:57:17 pm »
I am currently trying to make a fairly high level overview of the IT infrastructure of a company. I want to be able to make my own stereotypes of certain elements, so instead of using a component element defined in for example TOGAF, I want my own tags.

I am able to make a new stereotype with the tags that I want for a given instance of an element, but I am not able to save this and make new elements of this type that I can keep using.

Is there an easy way to do this?


Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Easy way to save stereotypes
« Reply #1 on: October 03, 2016, 06:17:58 pm »

rasmusthog

  • Guest
Re: Easy way to save stereotypes
« Reply #2 on: October 03, 2016, 07:44:11 pm »
Thanks for the reply. I think that using the techniques from that page is far more advanced than what I have in mind. I simply want an element that has custom tags and not the tags I intend to use (by the tags I mean the Tags-tab under Properties for either DataEntity or Component types). I am fully able to create one instance with the tags that I want, and if I copy that element, it also has the desired tags. However, I can't save this as a type so that I can create a new element that has the same tags. There must be an easy way to do this?

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Easy way to save stereotypes
« Reply #3 on: October 03, 2016, 07:51:00 pm »
That is the easy way. :)

In order to get EA to automatically create a set of tags in elements with a certain stereotype, you must create a UML profile that links those tags to the stereotype.

/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Easy way to save stereotypes
« Reply #4 on: October 03, 2016, 09:50:32 pm »
Uffe is right, it looks a lot scarier then it actually is.

For step by step instructions check the learning centre (Alt-F1) at Enterprise Architect | Modeling Languages | Build a Profile

Geert

rasmusthog

  • Guest
Re: Easy way to save stereotypes
« Reply #5 on: October 03, 2016, 10:18:06 pm »
EDIT: New reply below after I started editing, so I'll create a new post with the edit instead for clarity.


Ok, thanks guys! I feel like I'm getting somewhere now. I've been following the tutorials now, and I seem to have successfully created an MDG Technology with my own UML Profile. I am having some problems loading that technology into a current project however. I'll write down what I've done, and hopefully you can easily see where the mistake has been made:

I've ...

1. ... created a profile package by using "Add New Diagram", choosing UML Structural -> Package
2. ... dragged the Profile item into the diagram and checked "Create new diagram" in the prompt.
3. ... added a Metaclass (Component) and created two Stereotypes for this and connected using the Extension connector.
4. ... saved the package as a UML Profile
5. ... created a New MDG Technology, gone through the wizard, only checking "Profiles" and choosing the previously saved profile.
6. ... added this MDG Technology so that it shows up in the list of technologies (through Extensions -> MDG Technologies ... -> Advanced, and found the correct path).
7. ... tried to check my own MDG Technology in a project.

The last step does not work. I check it, and click OK, but I can't find the stereotypes I've created when creating a new element. And if I go back into the list of MDG Technologies, my Technology is now unchecked again.

Does any of this sound like a simple mistake has been made somewhere?

Thanks again!
« Last Edit: October 03, 2016, 11:28:23 pm by rasmusthog »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Easy way to save stereotypes
« Reply #6 on: October 03, 2016, 11:26:15 pm »
the best way to test your MDG is to test it on another model then the one you developed it on.

There are many ways of loading an MDG, and EA will not always tell you that you have loaded the MDG twice, it will simply not work.

So what I usually do is make sure I don't have any paths in Extensions|MDG Technologies|Advanced and I load the MDG in my test model via the resources view.

Geert

rasmusthog

  • Guest
Re: Easy way to save stereotypes
« Reply #7 on: October 03, 2016, 11:28:43 pm »
After a lot of back and forth, I now managed to include my new technology in a project. The stereotypes I defined can be found in the list, but the tags have disappeared!
For clarity, this is the tags that I want to set:




EDIT: I think it works as I need it to now! Thanks for all the help, and pardon the stupid questions! You've been great :)
« Last Edit: October 03, 2016, 11:44:37 pm by rasmusthog »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Easy way to save stereotypes
« Reply #8 on: October 04, 2016, 12:05:44 am »
For clarity the tagged values that are defined on your stereotype will go into a tab with the name of your technology, not in the general tags tab.

Geert