Creating New Requirement Stereotypes to add Properties

Discussions about requirements management product Cameo Requirements+ functionalities

Moderator: Moderators

Creating New Requirement Stereotypes to add Properties

Postby holtadams » Thu Dec 12, 2019 6:51 pm

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
holtadams
Forum Newbie
Forum Newbie
 
Posts: 5
Posts Rating:0
Joined: Fri Jan 28, 2011 1:55 pm

Re: Creating New Requirement Stereotypes to add Properties

Postby holtadams » Fri Dec 13, 2019 10:50 am

I think I have found a solution to my issues, but would welcome anyone's feedback if this is the best approach. I added a Stereotype (BaseExtention Class) between the ExtendedRequirement Class and my custom Stereotypes/Classes. The BaseExtention Stereotype/Class holds all the common properties that all of the other Custom Stereotypes inherit. :)
You do not have the required permissions to view the files attached to this post.
holtadams
Forum Newbie
Forum Newbie
 
Posts: 5
Posts Rating:0
Joined: Fri Jan 28, 2011 1:55 pm


Return to Cameo Requirements+

Who is online

Users browsing this forum: No registered users and 0 guests

cron