124 Model Driven Systems Development with Rational Products
Create use cases (this sequence is similar to creating actors):
– Expand 00 Enterprise Level → Use Cases → ${Building Blocks}.
– Right-click ${use.case} and select Copy.
– Right-click the Use Cases folder and select Paste.
– Right-click the new ${use.case} folder that you pasted and select Edit →
Find/Replace (or press Ctrl-f).
–Put ${use.case} in the Search string field and click Replace.
–Type RegisterForAlert in the With field and click Replace All.
– Repeat these steps to create use cases named GetLocalForecast and
GetRawWeatherData.
Create associations between the use cases and the actors:
– In the Project Explorer, expand the Use Case Diagrams folder.
– Open (double-click) the Use Case Diagram.
– In the Project Explorer, expand the GetRawWeatherData folder.
– Select the GetRawWeatherData use case and drop it into the use case
diagram (Figure 6-37).
Figure 6-37 Drag use case into the use case diagram
Note: You can also use the tool palette to create associations.
Note: Use cases are not placed into the context diagram. Relationships
between actors and the use case are created in the use case diagram.