Author Topic: Creating a stereotype with tagged values  (Read 1118 times)

gunterkoenigsmann

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Creating a stereotype with tagged values
« on: March 07, 2025, 07:41:35 pm »
Dear all,

I know how to create stereotypes and tagged values using Configure/UML types. I know how to type tagged values using their description and even have created moderately complex ShapeScripts. Now I wanted to have a stereotype that like FlowPort comes with its own tagged values.

How far I got:
  • Created a package with the EAUML::profile stereotype set
  • Added a package diagram to that package
  • Added a metaclass element to that diagram that extends Core Elements/Object
  • Added a stereotype element to the diagram
  • Added a "extends" connector starting from the stereotype to the metaclass
  • Created an object diagram in a totally different package and placed an object inside that diagram
  • Went to the properties window and tried to select my newly created stereotype by pressing on the "..." button in the Stereotype field. But I didn't find my stereotype there.
What did I do wrong?
My hope was by adding the "EAUML::profile" stereotype to my package everything inside that package would get known to the stereotype and tagged value selector.

The documentation says as the next step I can add tagged values to the Stereotype, and I even succeeded to add predefined ones to it. I also can add Tagged Value elements to my package diagram, but the documentation is a bit unclear on how to fill them with enumeration values, or type them bool, Real or Integer. And - most importantly: How do I then get those stereotypes and Tagged Values selectable in an object's properties page?

Thanks a lot in advance!

    Gunter.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Creating a stereotype with tagged values
« Reply #1 on: March 08, 2025, 02:34:29 am »
Gunther,

You'll need to

- Add tagged values to your stereotype definition. This is the easiest using the profile helper (right click on sterotype and choose edit with profile helper)
- Export your UML profile to an XML file
- Generate an MDG technology file that includes your profile xml
- Import the MDG technology file into your model.

For more info see https://sparxsystems.com/enterprise_architect_user_guide/17.0/modeling_frameworks/introduction_2.html

Geert