I have created several new Stereotypes that extend the ExtendRequirements Class to allow me to add SECURITY, INFRASTRUCTURE as new requirement types as well as ASSUMPTIONS,and DEPENDENCIES. I've even added new images so they show up uniquely in Requirements Tables. YEA..and very cool!
The one problem I'm having is that I want to have common properties for several of the Stereotypes (e.g. Status, Priority, MVP), similar to how the ExtendedRequirements class already has Source, Risk, and VerifyMethod properties. When adding new properties with the same name to the various Stereotypes I'm creating, I experience an issue when I assign an actual value to a property. For Example, If I create a new INFRASTRUCTURE Requirement, and assign a value for the Status property, MagicDraw automatically adds a SECURITY Stereotype to the element, on top of the INFRASTRUCTURE Stereotype I assigned. Thus the Icon changes and its primary Stereotype. I suspect that since I created the SECURITY Stereotype 1st, that MagicDraw looks for a StereoType with the property name that is being updated and assigns the first Stereotype it finds with this property name to the element if its not already assigned by the user. Adding a Status value to an element with the SECURITY Stereotype works fine.
Is there any way to have common property names across Stereotypes that extend the ExtendRequirements Class. I have noticed that if I update the values for any of the existing properties associated with the ExtendRequirement class (Source, Risk, and VerifyMethod) that my new Stereotypes that I assigned to elements remain unchanged and all works as expected.
Or is there anyway for a user to edit the ExtendRequirement Class to add new properties (this was my initial hope, but of course the ExtendRequirements class isn't enabled for changes by a user.)
Thanks, Holt