umldiagramvisiouse-caseargouml

How to connect use cases with each other?


I'm setting the use cases of a project, here are some of the details :

My question is two parts :

first one :

I have an actor user. The user can register on the website. He can login, view profile, edit password.

Regarding the previous use cases, I'm confused how to visualize the use cases in the diagram, I was thinking it might be done like the following :

enter image description here

  1. Create a use case "Manage Profile" and connect the other use cases "View Profile,Edit password, etc..." to it with a generalize relationship. and then connect that use case to the "loginCheck" use case with a "include relationship". The actor will indicate "manage profile".
  2. Create a sub-system "Profile" and set the use cases related to within it. then connect it to "loginCheck" with "include relationship". The actor will indicate each use case.

second one :

The user can Add bet : there are some types of bets:

Should I create a general use case "AddBet" and extend the other types to it. enter image description here

I can't upload photo directly because I'm new .


Solution

  • First of all, For me I saw a lot of "link" inside your diagram which seems to be use in a wrong way. Maybe you can take a look at some UML ressources and more specifically, association, generalization, include and extend links... BTW I am just curious to know which tool do you use for this? Visio or ArgoUML?

    So now concerning your(s) question(s).

    1. When you want to associate an actor to an usecase you have to create an association between them not a generalization
    2. If you want to specifiy that an "manage profile" use case can include (or not) changing password, view its profile, etc for this I would use an extend link.
    3. For modelling the fact that an given use case mandatory include another one I would use include relationship.
    4. the creation of an "add bet" use case "exntended" by the other one would indicate that you have a lot in commmon between all this possible bet.

    Please take a look at my screenshots and let discuss about it.

    enter image description here

    enter image description here

    enter image description here