Search code examples
umldiagramuse-case

Define actors in my use case diagram


this is quite simple, I have a problem that describes 4 types of users. each user have some permissions like manage ticket, create ticket, assign specialist .should my use case diagram be like this

  O
 -|-
  | ------> UseCase:login ---------->  UseCase :  create ticket
 / \
customer

  O
 -|-
  |  ------> UseCase:login ----------> UseCase :  assign specialist
 / \
coordinator


  O
 -|-
  |   ------> UseCase:login ------->  UseCase :  manage ticket
 / \
specialist

having 3 actors (Users with different roles). or like this:

                               --> UseCase :  create ticket
                              /
  O                          /
 -|-                        /
  |   ------> UseCase:login ------->  UseCase :  assign specialist
 / \                        \
User                         \
                              \
                               --> UseCase :  manage ticket

this one have one actor and depending of the user role the system will enable the actions that the user can perform. im not sure how to do it or which one is right or if any of them are correct. any contribution will be appreciated.


Solution

  • In fact I would "combine" both with the following diagram.enter image description here