In this lesson, you import project requirements into a Rhapsody® Gateway project.
In addition to Administrator access to DOORS®, you must have Rational® Rhapsody for
C or C++, and the Rhapsody Gateway
installed on your system for the import.
Note: The Elevator project is used as the requirements
example for this tutorial. The project is in the Rhapsody/Gateway
folder. The same model exists for both C++ and C programming languages;
either one can be used for the exercise.
- In Rational Rhapsody for C or C++, click to
load the elevator project from the Rational\Rhapsody\7.5.3\Gateway\examples\coupling\Rhapsody\Elevator
install directory.
- Select the example elevator.rpy. Right-click
on the elevator project, and select .
- The Rhapsody Gateway
starts, and the Coverage Analysis View appears by default.
- Click the Edit Project button
, from the
menu bar, to open the Rhapsody Gateway
Configuration window. 

- Click the Add Document button
in the middle
of the page under the work area. Click to stamp the document into
the main window. The default document name is Document1.
- In the Rhapsody Gateway
Configuration window, click on Type of Analysis tab
to select Doors Basic from the dropdown list.
Note that the Intermediate file box
is automatically checked off indicating that the intermediate file
is saved.
- Highlight the content in the File or Directory box,
and click the browse "…" button that becomes
functional as a result of the highlighting at the right of the tab.
The Select DOORS module window
opens where you are prompted to log into DOORS.

- After you login into DOORS,
select the Update button
to display the Elevator project
in the DOORS Database box of the Select DOORS module window. 
- The Doorselelevatorpjt project appears listed
under DOORS Database with all the Elevator
Specs files underneath.
The DOORS requirements are now imported into the
Gateway and the connection between the UML model and the requirements
covered by the model is established.
- To add a coverage link to the project, select one of the specs files,
for example Elevator Specs, and click OK.
- In the Rhapsody Gateway
window, select the Add Cover button
. Click . Note: The direction of the arrow is important. The model
always covers the requirement, so the direction of the arrow goes
from the model to the requirement. The coverage link is now made;
this establishes the connection between the model and the requirements.
- Click Yes when the Project Analysis
window appears prompting you to reanalyze the Rhapsody Gateway project.
- Return to the Rhapsody Gateway Coverage Analysis
View, and confirm that here are two documents listed.
- Click on the requirements, and confirm the uncovered
requirements that are highlighted in red
. Note that the
sun symbol
indicates
the newly added elements.
The DOORS requirements
are now imported into the Gateway and the connection between the UML
model and the requirements covered by the model is established.