You are on page 1of 3

RATIONAL ROSE TUTORIAL In this Rational Rose tutorial we will do the following: PART I Create separate packages for

each business area PART II Create use case diagrams for each business area PART III Add use case descriptions to use cases PART IV Add the file with your screens and reports to the model PART V A word about notes and colours PART VI Check your work TUTORIAL START Creating a new RR model When you open RR a Create new model ck Cancel. We won t be using a template.

window will appear with various templates. Cli

The Side (Left) Window There are four folders Use Case View, Logical View, Component View, Deployment Vie w. In this tutorial you will be using only Use Case View Notice the Main (Right) Window The main window defaults to Logical View, Main Class Diagram. This is annoying b ecause this is not always where you want to be. If you aren t careful you could pu t your Use Case diagram here by accident. Associations In Rational Rose 2001 you will notice an Associations icon for each package in the use case view. Once you have set up use cases and created use case diagrams Asso ciations will contain information about all of the associations between use cases and actors. We will not be referring to this feature. Save Often Save often, save often, save often PART I CREATING A SEPARATE PACKAGE FOR EACH BUSINESS AREA Introduction This tutorial uses an example of a Car Repair shop. We will use two business are as Vehicle Service and Customer Service. We need to create separate packages for e ach of these work areas and we need to create a main use case diagram that shows all of the packages. Create packages: Click on Use Case View in the side window. Right click. A list of options will appear. Click on New, then Package. In the folder name area key in Vehicle Service. Repeat the above steps creating a package named Customer Service. Create a main Use Case Diagram: Click on the + beside Use Case View in the side window (if it is not already exp anded). An entry called Main will show up in the Use Case View folder. This is t he Main Use Case diagram. Notice the icon. This same icon will be used for all U se Case diagrams. Double click on Main. An empty use case diagram will appear in the main window. In the side window click on the Vehicle Service folder and drag it to the use ca se diagram. Do the same for the Customer Service folder. Your Main use case diagram will now contain two packages. This is a high level r eference it shows all of the business areas that are part of your model. PART II CREATING USE CASE DIAGRAMS FOR EACH BUSINESS AREA Introduction As part of creating Use Case Diagrams we are going to create empty Use Case Diag rams then create and add Actors and Use Cases.

Create a use case diagram for each business area: Click on the Vehicle Service folder in the side window. Right click. A list of options will appear. Click on New, then Use Case Diagram. In the use case diagram name area key in Ve hicle Service. You now have an empty use case diagram in your Vehicle Service package. Repeat the above steps but this time create an empty use case diagram in your Cu stomer Service package. Create Actors and add them to the use case diagrams Please note that you want actors to be available to all packages so you don t put them into a specific package you just keep them at the Use Case View level. Let s create two actors Service Advisor and Customer Service Rep and put them into t he appropriate use case diagram. Click on the Use Case View folder in the side window. Right click. A list of options will appear. Click on New, then Actor. In the actor name area key in Service Advisor. Double click on the Vehicle Service use case diagram so that the empty diagram a ppears in the main window. In the left window click on the Service Advisor actor and drag it into the use c ase diagram. Your use case diagram should now have an actor in it. DRAG & DROP METHOD: There is an alternate way to add actors. Display a use case diagram in the main window. Click on the actor icon on the toolbar then click on the use case diagram. The Actor will appear in the main window with no name. Ke y in a name. Now use either method described above to add a Customer Service Rep actor to the Customer Service use case diagram. To Delete Actors If you want to delete an actor from a use case diagram, click on it in the diagr am and use the DEL key. If you want to delete an actor from the whole model, click on the actor name in the side window, right click and click on Delete. The actor will be deleted from the model. Create Use Cases in the Use Case Diagram Double click on the Vehicle Service use case diagram. The diagram should appear in the main window. Click on the use case icon in the toolbar (the ellipse) then click on the diagra m. The Use Case will appear in the diagram with no name. Key in a name Maintain Ve hicle Information. Add another use case called Maintain Service Information. ALTERNATE METHOD: In the side window click on Use Case View, right click, select Add, then Use Case. An unnamed Use Case will be added. Key in a Use Case name. To get the Use Case into a diagram, display the diagram in the main window, clic k on the use case in the side window and drag it into the diagram. Now use either method described above to add two use cases to the Customer Servi ce use case diagram Maintain Customer Information and Track Customer Calls. To Delete Use Cases Use the same method as for actors. Associate Actors to Use Cases Use the association icon (solid line like an upside down L with no arrows). If you don t see this symbol on your toolbar, right click on the toolbar (right on the t ools), select customize, and then Add it from the left to the right. To associate an Actor to a Use Case, click on the association icon, click on the Actor, drag to the appropriate Use Case and let go. Display the Vehicle Service use case diagram in the Vehicle Service package. Ass ociate the Service Advisor with both use cases in the diagram.

Display the Customer Service use case diagram in the Customer Service package. A ssociate the Customer Service Rep with both use cases in the diagram. Detailed Association Icons NOTE: in Rational Rose 2001 when you add an association you will notice that a d etailed association icon appears on any use case or actor involved in the associ ation click on + beside the use case or actor to see these. These icons will show you all actors and use cases associated to each use case and actor. To Delete an Association To delete an association between Actor and Use Case, click on the association, t hen use the Delete key