Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: wstidolph on March 15, 2013, 01:26:01 pm
-
How do I make a custom subtype of Requirement?
My goal is to have a custom Toolbox/Profile where I have several kinds of Requirements according to what their source is (Company, Business Unit, RFP, etc according to source) and then be able to apply the standard <<functional>> etc stereotypes on top of that. It's not just for the appearance, either - I want to be able to use "RFP Req" as the Type in the Relationship Matrix.
I tried adding Stereotypes with Requirement as the metaclass and dragging from my Toolbox onto my requirements diagrams works as I expect - but when I change the Type dropdown to 'functional' they lose all the "RFP" stereotyping, and the "RFP" type isn't there in the Type Dropdown nor in the Relationship Matrix type list. So I think this isn't the right technique.
What is the right technique for making subtypes of the EA types available in my Toolbox and for tracing?
-
What I believe you are trying to achieve is multiple stereotypes.
The requirement type drop down masquerades as a <<stereotype>> hence when you create a requirement using your profile and then change using the type drop sown list, you end up with stereotype.
Oddly, in older versions of EA, this used to work and you ended up in the project browser with a stereotype looking like
[highlight]<<functional...>>[/highlight]
Try this:
1. Select your requirement in the Project Browser
2. Go to the [highlight]Properties View (not the properties dialog [/highlight]- you may have to select this view from the View menu if it is not already in your workspace
3. Locate the stereotype entry and click on the ...
4. Select [highlight]Browse Other Stereotypes...[/highlight]
5. From here you can check [highlight]Functional[/highlight]
You should now have two stereotypes, the one from your profile and the <<functional>> (you cannot control whiich comes first)
Best of luck with the Relationship matrix, you might be lucky and still be able to use you profile stereotype, but I have not tried myself
Hope this works
All the best
Phil
-
If you would like to be able to use the Stereotype of your Requirements in a Relationship Matrix, EA currently doesn't support it (as of V10).
BUT, if you generate documents using eaDocX, it allows you to choose the Type AND Stereotype of items to appear in the matrix, as well as display the stereotype name (an other stuff) as additional rows/columns.
It only supports the 'main' stereotype - the one which is shown in the package browser: any other stereotypes are ignored.
-
If you want specific stereotypes to be available in the relationships matrix, all you need to do is set a metatype as described in http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/standard_uml_models/defining_a_stereotype_as_a_met.html