Writing effective use case tutorial

This tutorial will teach you how to use the actor grid and use case grid to create and manage actors and use cases. We will also teach writing flow of events with use case detail editor. Finally we will visualize use cases and actors with UML Use Case Diagram. Visual Paradigm for UML provides extensive modeling toolset for system analyst to write effective use case with use case diagram, flow of events editor and use case grid.

January 08, 2010
User Rating: / 2
Views: 6445
PDF Link Add comments
Edition: Professional or above (Edition comparison)
Share |

Creating Actors
  1. We first create actors using the Actors Grid. Select Tools > Model Element Grid > Open Actors Grid.
    Open actors grid

    Open actors grid

  2. Click the Create Actor button at the top left hand corner to create new actor.
    Create actor

    Create actor

  3. Name the actor as Order Process Clerk, the documentation of the actor can be specified directly in the Documentation pane.
    Input 'Order Processing Clerk' to actor name cell and input documentation

    Input "Order Processing Clerk" to actor name cell and input documentation

  4. Create two more actors, Customer Service Assistant and Inventory Control Clerk. Besides clicking the Create Actor button, you can press the Insert key to insert a new actor.
    Create two more actors

    Create two more actors

Creating use cases
  1. After creating actors, we now switch to create use cases. Select Tools > Model Element Grid > Open Use Cases Grid.
    Open use cases grid

    Open use cases grid

  2. Similar to the Actors Grid, you can create use case with the Create Use Case button at the top left hand corner of the grid.
    Create use case

    Create use case

  3. Name the use case as Place Order.
    Input 'Place Order' to use case name cell

    Input "Place Order" to use case name cell

  4. Let's create few more use cases, Check Order Status, Process Order, Schedule Delivery and Handle Goods Return.
    Create 5 more use cases

    Create 5 more use cases

Writing flow of events
  1. We can define the details of a use case using the use case detail editor. Select the Place Order use case, and then click the Open Use Case Detail button.
    Click the 'Open Use Case Detail' button to open use case detail

    Click the "Open Use Case Detail" button to open use case detail

  2. We first switch to Info tab, and specify the Rank of the use case as High, and fill in the brief description in the Documentation field.
    Change use case rank to 'High'

    Change use case rank to "High"

  3. Switch to Flow of Events tab, and then specify the flow of events of the use case.
    Switch to 'Flow of Events' pane and input the flow of events

    Switch to "Flow of Events" pane and input the flow of events

  4. Switch to Details tab and specify more detail, such as Preconditions and Post-conditions for the use case.
    Switch to 'Details' tab

    Switch to "Details" tab

  5. Go back to Use Case Grid by clicking the Go to Grid button at the top right hand corner of Use Case Details editor.
    Click on the 'Go to Grid' button

    Click on the "Go to Grid" button

Drawing use case diagram
  1. After we define the details of the use case, we can now put it into diagram. Select the Place Order use case in the Use Case Grid, and press the Visualize button.
    Click on the 'Visualize' button to show the selected use case to diagram

    Click on the "Visualize" button to show the selected use case to diagram

  2. Let's visualize the Place Order use case in a new use case diagram. Select Create new diagram and leave the name as default in the Visualize Model Element dialog. Press the Create button to proceed.
    The Visualize Model Element dialog box

    The Visualize Model Element dialog box

  3. Open Model Explorer, and drag the Customer Service Assistant actor to the newly created use case diagram.
    Drag and drop 'Customer Service Assistant' model element to use case diagram

    Drag and drop "Customer Service Assistant" model element to use case diagram

  4. Since the actor is not appearing on any diagram yet, you will be prompted to specify it as Master View in the project.
    'Set as Master View' prompt box

    "Set as Master View" prompt box

  5. Connect the actor and use case by selecting the Association icon from actor, and drop it on the use case.
    Connect 'Customer Service Assistant' actor to 'Place order' use case

    Connect "Customer Service Assistant" actor to "Place order" use case

  6. Open the use case detail again by right click on the use case, and select Use Case Details.
    Open use case detail pane

    Open use case detail pane

  7. You can see the Customer Service Assistant now being specified in the Primary Actors field.
    'Place Order' use case detail

    "Place Order" use case detail

  8. The supporting actors can be specified by pressing the + button next to Supporting Actors field, and select the actor from the list.
    Click on the 'Add Primary Actor' button

    Click on the "Add Primary Actor" button

  9. Let's create an extended use case from Place Order, name it as Process Out of Stock Order. Name the extension point as Out of Stock.
    Create extend use case

    Create extend use case

  10. After that enter the documentation of the Process Out of Stock Order use case.
    Use Case Specification dialog box

    Use Case Specification dialog box

Defining extension point
  1. Switch back to the flow of events of Place Order use case. Let's add an extension for step 5 of the flow of events. Select step 5, then press the New Extension button.
    Create extension point by 'New Extension' button

    Create extension point by "New Extension" button

  2. The extended use case will be listed in the combo box in the Extension table. Let's select the Out of Stock use case.
    Select 'Process Out of Stock' extension point

    Select "Process Out of Stock" extension point

  3. The Out of Stock use case is now listed as the extension for step 5. Move your mouse cursor over it and the documentation of the Out of Stock use case will be shown.
    'Process Out of Stock' hyperlink

    "Process Out of Stock" hyperlink

  4. You can jump to the Out of Stock use case or open its flow of events by right clicks on it.
    Jump to extend use case by popup menu

    Jump to extend use case by popup menu

Resources

  1. sales_order_system.vpp

Related tutorials

Comments (4)

Business Analyst

written by sebastian on February 11, 2010

ok, am hooked.How much is it going to cost me to purchase the full software?Are there more tutorials that i can do so long to get used to the application? Please Please Please reply.

Re: Business Analyst

written by ? on February 11, 2010

The cost of the software is USD 699 or 838.5 with one year maintenance.
Visual Paradigm for UML Professional Edition
http://www.visual-paradigm.com/product/vpuml/editions/professional.jsp

You can get attend our multimedia training course in VP Training Center
https://www.vp-trainingcenter.com/summary/usingusecasediagram.html

Mr

written by Graham on March 31, 2010

I downloaded the sales_order_system case study but can not find the vpp to open it. How should I access this?

Excellent tutorial.

Re: Mr

written by ? on March 31, 2010

Please download the software in following link:
http://www.visual-paradigm.com/download/vpuml.jsp

Write comment

Name

Email

Title

Comment

Write the displayed characters

security code