Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: gunterkoenigsmann on March 07, 2025, 07:41:35 pm

Title: Creating a stereotype with tagged values
Post by: gunterkoenigsmann 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:
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.
Title: Re: Creating a stereotype with tagged values
Post by: Geert Bellekens 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 (https://sparxsystems.com/enterprise_architect_user_guide/17.0/modeling_frameworks/introduction_2.html)

Geert