How to make Rational Rhapsody Gateway Add On recognize and analyze user-defined types of Requirement Elements
How do you make IBM Rational Rhapsody Gateway Add On analyze user-defined types of Requirement elements in the same way as tool's pre-defined Requirement types?
In some cases, user-defined Requirement elements would be introduced in Rhapsody model. When collaborating the model with Gateway Add On (Gateway), the new type of those requirements won't be automatically recognized by Gateway hence those requirements won't be taken into account when performing further analysis.
Rhapsody Gateway recognizes profiles. Managing the user-defined type of Requirement Elements in Rhapsody profile and creating new types definition in Gateway could solve the problem.
Below is the detailed steps to follow:
- Add a user profile (suc as UserDefProfile) in Rhapsody model.
- Create a new stereotype (Functional Requirement) which is applicable to "Requirement" in UserDefProfile. At the same time, check "New Term" feature.
- Create a requirement element in the model with above user-defined stereotype of "Functional Requirement" selected.
- Highlight the root folder in the browser tree.
- Open Gateway via right-click -> [Rational Rhapsody Gateway] -> [Open].
- By default, requirement element "myFunctinalReq" won't be recognized as a requirement in Gateway.
- Select Gateway menu [Tools] -> [Generate types for this model] and next select the user profile from the open dialogue box.
- Click [Yes] button if the below dialogue pops up.
- Open Gateway Type Editor Window from menu [File] -> [Edit Types]. You can see previously selected UserDefProfile has been listed in the Type Editor. Expand the feature view of Requirement type defined in UserDefProfile and change the default value of "userDefinedMetaClass" into "^Functional Requirement$" as below.
- Click [Apply] button and allow the tool reanalyze the project. Once completed, you will see the added user-defined requirement is also recognized by Gateway.
If a user-defined requirement type has been used in multiple Rhapsody models, it's not an efficient way to create user profile every time and make Gateway generate types based on the user profile.
In this case, you can consider adding user requirement type directly into Gateway UML default type definition files (e.g. "rhapsody.types" file). Those type definition files are located under <product installation folder>\Gateway\config\types\UML folder. Note you should first change the file attribute to "writable" mode before you do any modification on the file.
If you are confident, you can directly add user type definition blocks using a suitable text editor. Or you can make the modification from Gateway Type Editor interface via context menu as below:
More support for:
Rational Rhapsody Developer
Software version: 7.5, 188.8.131.52, 7.5.1, 184.108.40.206, 7.5.2, 220.127.116.11, 7.5.3, 18.104.22.168, 22.214.171.124, 126.96.36.199, 7.6, 188.8.131.52, 7.6.1, 184.108.40.206, 220.127.116.11, 18.104.22.168, 8.0, 8.0.1
Operating system(s): Windows
Reference #: 1628878
Modified date: 28 March 2013