Search code examples
umldiagramuse-case-diagram

UML diagram use case condition


I am creating use-case diagram. I have two actors: user and admin. Admin can check all orders, and user can check only his/her orders.

Should I create two use cases in my UML diagram, or I can use one use case with condition for user actor?

If I can use condition, which symbol must I use? Square brackets or curly brackets?


Solution

  • You need to attach a constraint to either the connector, the use case or the actor (where it's most appropriate). It could look like this:

    enter image description here

    Note that this is an example and contains redundant constraints which should not be done for a real UC.