Problem with use case diagram

I am realising a project only I do not understand whether the diagram is correct or not.

I’ve used a generalization for merging two CRUD operations. Is this correct?

Is the use case login correct if it includes the other use case, or is it better for the actor to have an association with the use case manger uc and include the use case login or are login and manger uc separate?

New contributor

lucagiuseppe caliò is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

This use case diagram isn’t what I would consider correct.

First, Login isn’t a use case. Use cases capture goals that an actor has when interacting with a system. Although logging in (and other forms of authentication) may be a prerequisite for achieving a goal, it isn’t a goal itself. That is, no one uses a system to log in and then says that they’ve accomplished their goal. Because of this, there is no need to include Login as a use case on a diagram and it often adds clutter, making the diagram harder to understand.

Second, meta use cases don’t belong. Again, each use case represents a goal. Because “pharmaceutical company management” isn’t a specific goal that an actor has, it isn’t a good use case. You seem to be using a use case to organize other use cases, which isn’t their purpose.

However, as always, I would generally discourage use case diagrams. To quote Martin Fowler:

Use cases appear in the UML in the form of use case diagrams, but these diagrams are of little value – the key value of use cases lies in the text which is not standardized in UML. So when you do use cases put your energy into the text.

Instead, I’d point to various textual and tabular methods to capture use cases. Alistair Cockburn’s Writing Effective Use Cases is one of the canonical texts going into detail on using use cases, including various formats and structures that may be useful.

7

There is an appropriate way to use the include and extends functonality.
(Many of the firms that provide UML diagramming tools have good tutorial
sections. I found the one for IBM’s Rational Software Modeler at
ibm.com/docs/en/rsm/7.50 apropos to the original poster’s needs.)

“Add Pharma Company” and “Edit Pharma Company” may have common features
as pharmaceutical company management functions. Perhaps it may just
be a look and feel. (Note, if pharmaceutical company management were
a separate system, one might put a box around it.) In that case one
can use the extends relation to indicate that. (Note that this is the same
as extending a class in a UML class diagram, if A and B use common features,
it may be appropriate to have them extend something (a C), whether they
be classes or use cases.)

It is appropriate if several use cases use a common functionality
like logging in, then the < is appropriate. But one
would have the pharmaceutical management functions <>
I did not do it, but it would be very appropriate to have the
super use case “Pharmaceutical Company Management Function” have the
<> arrow to the login function.

Of course, as several of the people making comments pointed out,
we all know that one must log in to a system prior to doing anything
else. Thus,
it might be superlative to indicate “<>” for login. But that
is a style issue whose discussion is beyond the scope of THIS forum.

New contributor

user2694186 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

3

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật