Book a Demo

Author Topic: Profile Helper “Add Stereotype” - inherit from Stereotype  (Read 7079 times)

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Profile Helper “Add Stereotype” - inherit from Stereotype
« on: January 17, 2021, 08:46:28 pm »
Hi,

I implemented a Profile the “hard way”. Now I wanted to test the Profile Helpers to make things easier. I struggle with the Profile Helper “Add Stereotype”. I want to inherit from another Stereotype (not to extend a MetaClass), in this case from “ArchiMate3::ArchiMate_ApplicationComponent”.

I found https://stackoverflow.com/questions/56537096/defining-a-stereotype-for-a-non-uml-element-in-a-sparx-enterprise-architect-uml” which describes this way but not how to do this. In the “Add Stereotype” dialog I see the different Types (Element Extension, Connector Extension, Abstract Metaclass, Metaclass Extension) and the “Add Metaclass” button.

My questions are:
- Can I use this functionality to add the stereotype I want to inherit from?
- I cannot find this described in the manual. It describes only how to extend Metaclasses. Am I wrong?

Many thanks in advance, V.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Profile Helper “Add Stereotype” - inherit from Stereotype
« Reply #1 on: January 17, 2021, 10:43:21 pm »
This is what you are looking for:

https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/non-uml_metatypes.html

This allows you to create the ArchiMate3::ArchiMate_ApplicationComponent stereotype element without needing to type it in manually (and possibly making an typo)

You can then inherit from this stereotype/metaclass. Although not mentioned in the manual, I always also extend from the base UML type (Component in this case)

Geert

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Profile Helper “Add Stereotype” - inherit from Stereotype
« Reply #2 on: January 18, 2021, 12:06:09 am »
This is what you are looking for:

https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/non-uml_metatypes.html

This allows you to create the ArchiMate3::ArchiMate_ApplicationComponent stereotype element without needing to type it in manually (and possibly making an typo)

You can then inherit from this stereotype/metaclass. Although not mentioned in the manual, I always also extend from the base UML type (Component in this case)

Geert

Many thanks @Geert. "[Manually] draw a Generalize connector from the custom Stereotype added in step 5 to the non-UML Stereotype element added in step 4." I thought that this would be done "automatically" by the Helper. That confused me. I don't think that this is consistent, do you?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Profile Helper “Add Stereotype” - inherit from Stereotype
« Reply #3 on: January 18, 2021, 03:26:39 am »
I don't think that this is consistent, do you?
I don't even ask that question anymore :o

Geert

Viking

  • EA User
  • **
  • Posts: 478
  • Karma: +2/-2
    • View Profile
Re: Profile Helper “Add Stereotype” - inherit from Stereotype
« Reply #4 on: January 19, 2021, 03:19:27 am »
I don't think that this is consistent, do you?
I don't even ask that question anymore :o
Geert

You made my day.