Page History
...
In your project, create a Package for your custom properties.
Expand title How to create a new package To create a new package In the Containment tree, right-click the element.
Info The element should be a namespace, such as a package, class, or requirement.
- Select Create Element > Package.
- Type a name for the new Package (e.g. Custom Properties).
- Press Enter.
In that package, create a new stereotype. How to create a new stereotype >>
Apply a metaclass Class to the created stereotype.
Expand title How to apply metaclass for a stereotype To apply a metaclass to a stereotype
a. In the Containment tree, right-click the newly created stereotype.
b. From the shortcut menu, select Metaclass.
c. In the Metaclass dialog, select a Class.
d. Click Apply.For the stereotype with the applied metaclass Class, create custom properties.
Expand title How to create custom properties for a stereotype To create custom properties for a stereotype
a. In the Containment tree, right-click stereotype.
b. From the shortcut menu, select Create Element.
c. In the Create Element dialog, select Property.
d.Type a property name and specify a value type.Extend the ExtendedRequirement class using properties created in the stereotype (i.e., you must relate the stereotype with the Generalization relationship to the ExtendedRequirement class).
Expand title How to extend ExtendedRequirement class by custom properties To extend the ExtendedRequirement class using custom properties
a. In the Containment tree, right-click stereotype.
b. From the shortcut menu, select Create Relation > Outgoing.
c. In the Outgoing dialog, select Generalization.
d. In the Create New Generalization To dialog, select the List tab, clear the Apply Filter check box, and select the ExtendedRequirement [Class].
e. Click OK.On the main toolbar, click Save Project button and restart your project.
Your custom properties are added to the general requirement properties. You can assign values to them in the Requirement’s Specification window or in the Properties panel.The following figure depicts how the stereotype related to the ExtendedRequirement [Class] looks in the Containment tree and diagram pane.
...