1
General Board / 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:
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.
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.
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.