@Simon,
Yes, I have an extension to the base «metaclass» Component because that's what an E.A. consultant told me to do.
In the mdg_technologies.pdf p.28, the note says:
If you are adding any of the Metaclass element Attributes to your stereotype, or if you want to use the Profile Helper to create a toolbox profile, your stereotype Class must extend a metaclass as well as specialize a stereotypeBased on my latest tests described below, it is the Extension Relationship to the base «metaclass» that causes the issue but at the same time, it's only when I have that Relationship that my stereotype class is correctly instantiated with the correcte stereotype.
I hope this is clear. Any solutions???
Created a brand new project with a brand new profile step by step to control everything
Step 1:
- Drag and drop Metaclass and selected Stereotype ArchiMate3::ArchiMate_ApplicationComponent
- Created new Stereotype LBC_ArchiMate_ApplicationComponent. I add a tag value attribute to differentiate from parent class.
- Draw Generalization Relationship from LBC_ArchiMate_ApplicationComponent to ArchiMate3::ArchiMate_ApplicationComponent
- Publish profile package as UML Profile
- Import profile in Resources
- Test in diagram
Result:
- toolbox has only one component icone
- Component is correctly instantiated but the stereotype in properties is empty.
Step 2:
- Add «redefines» stereotype to Generalization Relationship establish in step 1
- Publish profile package as UML Profile
- Import profile in Resources, overwrite current profile
- Test in diagram
Result:
- toolbox has only one component icone
- Component is correctly instantiated but the stereotype in properties is empty.
Step 3:
- Add «metaclass»Component
- Establish Extension Relationship from LBC_ArchiMate_ApplicationComponent to Component
- Publish profile package as UML Profile
- Import profile in Resources, overwrite current profile
- Test in diagram
Result:
- toolbox has now the folder icone. If I drad&drop on the diagram, I'm asked to select between ApplicationComponent and ApplicationComponent

.
- I've tried with both and same result: Components are correctly instantiated including the stereotype that now has the «LBC_ArchiMate_ApplicationComponent» value
