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?
I believe you are doing too much as part of your use case analysis. Use cases are listing what your users (actors) can do and what benefit they get from doing those actions. Thinking that way, each user/actor will have a set of actions (use cases) that will provide them with a benefit. In your example, you should have many use cases for each actor, e.g., Admin would be able to create/delete users and provileges (UC1), list all actions from one or many users (UC2) and both would yeild different results.
When you start building your domain and behaviour models, then you will start adding the details of the behaviour.
来源:https://stackoverflow.com/questions/49692740/uml-diagram-use-case-condition