Tool Mentors > Rational Rose Tool Set > Rational Rose Tool Mentors for Business Modeling > Finding Business Workers and Entities Using Rational Rose

Purpose

This tool mentor describes how to use Rational Rose to record the results of finding business workers and entities.

Related Rational Unified Process information: Activity: Find Business Workers and Entities

Overview

The following steps are a summary of how you model the results of finding business workers and entities:

  1. Create the business object model

  2. Create business workers and business entities (classes in the business object model)
  3. Create the use-case realization package in the business object model
  4. Create a business use-case realization
  5. Create traceability between a business use-case and its realization
  6. Create a collaboration diagram for the business use-case realization
  7. Place actors and objects in a collaboration diagram
  8. Create links between objects in a collaboration diagram
  9. Create a sequence diagram for the business use-case realization
  10. Place actors and objects in a sequence diagram
  11. Describe messages between objects in a sequence diagram
  12. Describe what an object does when it receives a message in a sequence diagram
  13. Create class diagrams to document classes in the business object model

1. Create the business object model To top of page

A separate business object model can be represented in Rational Rose using a package within the Logical View Named "Business Object Model. To create a package called Business Object Model in the Logical View:

  • Select the Logical View in the browser.

  • Select Package from the New option on the shortcut menu. A NewPackage browser icon is added to the browser.
  • With the new package icon selected, type the name Business Object Model.

2. Create business workers and business entities (classes in the business object model) To top of page

To create a class (a business worker or a business entity) in the business object model:

  • Select the Business Object Model package in the browser and make the shortcut menu visible.

  • Select Class from the New option on the shortcut menu. A NewClass class icon is added to the browser. While the new class is still selected, type the name of the class.
  • Open the Class Specification for the new class.
  • In the documentation field, enter its brief description.
  • In the Stereotype field, enter Business Worker or Business Entity.

3. Create the use-case realization package in the business object model To top of page

All business use-case realizations are organized initially into a package within the Artifact: Business Object Model, which is in turn represented as a package in the Logical View in Rational Rose.

When you create a package within the Business Object Model to contain the business use-case realizations, you should:

  • Name the new package Business Use-Case Realizations.

  • Select Class Diagram from the New option on the shortcut menu. A NewDiagram browser icon is added to the browser.
  • With the new diagram icon selected, type the name Traceabilities.

4. Create a business use-case realization To top of page

To create a business use-case realization:

  • Select the Use Case View package in the browser and make the shortcut menu visible.

  • Select Use Case from the New option on the shortcut menu. A NewUseCase class icon is added to the browser.
  • Select the NewUseCase icon. Drag-and-drop the NewUseCase into the Business Use-Case Realization package within the Business Object Model package.
  • Double-click the NewUseCase icon to display the Use Case Specification dialog for NewUseCase and replace the name NewUseCase with the name of the business use case.
  • In the Stereotype field, enter business use-case realization.
  • Click OK.
  • If a dialog appears indicating the business use case now exists in two name spaces, click OK.

5. Create traceability between a business use-case and its 
realization To top of page

To create traceability between a business use case and its business use-case realization:

  • Expand the Logical View in the browser.

  • Expand the Business Object Model package in the browser
  • Expand the Business Use-Case Realization package in the browser
  • Double-click on the Traceabilities in the Business Use-Case Realization package diagram to open it.
  • From the Use Case View left-click to select the business use case. Holding the left-button down, drag-and-drop the business use case onto the canvas of the Traceabilities diagram.
  • From the Business Use-Case Realizations package, left-click the select the business use-case realization you wish to associate with the business use case selected. Holding the left-button down, drag and drop the business use-case realization onto the canvas of the Traceabilities diagram, locating it in close proximity to the business use case.
  • From the diagram tool bar, select the association tool.
  • Left-click on the business use-case realization. Holding the left-button down, move the mouse pointer to the business use case and release the left-button. An association will be created.
  • Double-click on the association to display the association specification.
  • In the stereotype field, enter realizes.
  • Click OK.

6. Create a collaboration diagram for the business use-case realization To top of page

Business use-case realizations are captured in Rational Rose using collaboration diagrams. For more complex realizations, you can use sequence diagrams (see Create a Sequence Diagram for the Business Use-Case Realization).

To create a collaboration diagram for the business use-case realization:

  • Right-click to select the business use-case realization in the browser and make the shortcut menu visible.

  • Select Collaboration Diagram from the New option on the shortcut menu. A NewDiagram collaboration diagram icon is added to the browser.
  • With the new collaboration diagram selected, type the name of the diagram. Name the diagram <business use-case name> - <workflow type>. This naming convention simplifies future tracing of objects to the business use-case realization that they participate in.
  • Double-click on the new collaboration diagram to bring it up in the diagram window.

7. Place actors and objects in a collaboration diagram To top of page

To create objects in collaboration diagrams, do the following:

  • Double-click on the collaboration diagram in the browser to open it up in the diagram window.

  • Click to select a business actor in the browser.
  • Drag-and-drop the business actor onto the collaboration diagram.
  • Click to select a business worker or a business entity in the browser.
  • Drag-and-drop the business worker or business entity onto the collaboration diagram. An object of that class is created in the collaboration diagram.
  • Repeat the preceding steps for each object and actor in the business use-case realization.

8. Create links between objects in a collaboration diagram To top of page

Links provide a way for two objects/actors to exchange messages. To create a link between two objects in a collaboration diagram, do the following:

  • Double-click on the collaboration diagram in the browser to open the diagram.

  • Click to select the link symbol from the toolbar.
  • Click on the business actor or object on one end of the link and drag the message line to the business actor or object at the other end of the link.
  • Repeat the preceding steps for each link required between objects or business actors in the business use-case realization.

9. Create a sequence diagram for the business use-case 
realization To top of page

To create a sequence diagram for a business use-case realization:

  • Right-click to select the business use-case realization in the browser and make the shortcut menu visible.

  • Select Sequence Diagram from the New option on the shortcut menu. A NewDiagram sequence diagram icon is added to the browser.
  • With the new sequence diagram selected, type the name of the sequence diagram. It is recommended that you name the diagram <business use-case name> - <flow type>. This naming convention simplifies future tracing of objects to the business use-case realization that they participate in.
  • Double-click on the new sequence diagram to bring it up in the diagram window.
  • In the documentation window, enter a brief description of the business use-case realization that the sequence diagram depicts.

10. Place actors and objects in a sequence diagram To top of page

To place actors objects in sequence diagrams:

  • Double-click on the sequence diagram in the browser to open it up in the diagram window.

  • Click to select the business actor in the browser.
  • Drag-and-drop the business actor onto the sequence diagram.
  • Click to select a business worker or a business entity in the browser.
  • Drag-and-drop the business worker or business entity onto the sequence diagram. An object of that class is created in the collaboration diagram.
  • Repeat the preceding steps for each object and actor in the business use-case realization.

11. Describe messages between objects in a sequence diagram To top of page

To create a message in a sequence diagram:

  • Click to select the Object Message symbol from the toolbar.

  • Click on the actor or object sending the message and drag the message line to the actor or object receiving the message.
  • Enter the name of the message while the message line is still selected.
  • Repeat the preceding steps for each message in the business use-case realization.

To document a message:

  • Open the Message Specification dialog box for the message, either by double-clicking on the message, or by right-clicking and selecting the Specification option in the shortcut menu.

  • Enter the documentation in the Documentation field.
  • Select OK to close the specification.

To rearrange the time order of messages in a sequence diagram, select the message arrow and drag-and-drop messages up and down the time axis to rearrange the order.

12. Describe what an object does when it receives a message in a sequence diagram To top of page

To attach a script to a message:

  • Select the Text Box symbol in the sequence diagram toolbar.

  • Click on the position where you want to insert the script in the diagram.
  • Enter the script in the text box.
  • Select both the script and the message arrow by selecting the two symbols while holding down the shift-key.
  • Select the Attach Script option from the Edit menu. This attaches the script to the message. Note that the script disappears if the message is removed.

Scripts can be formatted by selecting their text box and dragging the corner markers.

13. Create class diagrams to document classes in the business object model To top of page

To create a class diagram and insert a class in the diagram, do the following:

  • Right-click to select the Business Object Model package in the browser and make the shortcut menu visible.

  • Select Class Diagram from the New option on the shortcut menu. A NewDiagram class diagram is added to the browser.
  • While the class diagram is still selected, type the name of the class diagram; name the diagram after the class that it is meant to describe.
  • Click to select the class in the browser.
  • Drag-and-drop the class onto the class diagram.

Repeat the preceding steps for each class in the Business Object Model package.

Copyright  © 1987 - 2001 Rational Software Corporation


Display Rational Unified Process using frames

Rational Unified Process