You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

用例图设计合理性确认:Admin与Inventory Officer角色疑问

用例图设计合理性咨询及优化建议

背景与问题

我受老师指派完成一项任务,需根据给定用例创建Use Case Diagram。目前设定了Admin和Inventory Officer两个Actor,二者的用例权限高度重合,但我不确定当前的用例图设计是否合理。

附上我的设计作品:
我的用例图作品

老师提供的用例如下:

Administrator(Actor)
Add User Account
Update User Account
Deactivate User Account
View User Account

Add User Group
Update User Group
Remove User Group
View User Group

Add Vendor
Update Vendor
Deactivate Vendor
View Vendor

Add Location
Update Location
Deactivate Location
View Location

Add Product Category
Update Product Category
Remove Product Category
View Product Category

Add Product
Update Product
Deactivate Product
View Product

Add Status
Update Status
View Status

Create Purchase Requisitions
Modify Purchase Requistions
Submit Purchase Requisitions
View Purchase Requistions

Cancel Purchase Order
Send Purchase to Supplier
View Purchase Orders

View Purchase Requisitions
Cancel Purchase Requisitions

Withdraw Items
Receive Items
View Inventory

View Notifications
Exipiration Alerts
View Product Updates
View Product Updates
View Supplier Updates
View Location Updates
View Cancelled Purchase Requisitions
View Approved Purchase Requisitions
View Purchase Orders
View Withdrawn items
View Received Items

View Aging of Purchase Requisitions Report
View Purchase Requisitions by Status Report
View Aging of Purchase Orders
View Purchase Order Status
View Inventory Report
View Vendor List report
View Location List report
View Product List report

现正式咨询:当前的用例图设计是否需要优化改进,还是可以直接提交?

设计分析与优化建议

从你提供的用例列表和现有设计来看,当前用例图存在几个核心问题,不建议直接提交,具体调整方向如下:

1. 明确角色权限差异

老师给出的用例中,Admin包含系统管理类权限(如用户账户/组的增删改查、状态管理),而Inventory Officer的核心职责应聚焦在库存与采购业务操作(如物品收发、采购申请/订单处理)。当前设计中二者权限高度重合,没有体现出角色职责的本质区别,这是首要需要修正的点:

  • 将所有系统管理类用例仅分配给Admin;
  • 库存操作、采购业务、非系统类报表等用例分配给Inventory Officer;
  • 对于两类角色共用的基础查看用例(如View Vendor、View Product),可通过Actor的泛化关系(让Inventory Officer继承Admin的部分权限)或共用用例的方式明确标注。

2. 优化用例归类与冗余处理

老师提供的用例存在重复项(如两次View Product Updates),且部分用例可归类合并,提升图面简洁度:

  • 将所有报表类用例归为父用例「查看报表」,下设各具体报表的子用例;
  • 按实体类型归类增删改查用例(如「用户账户管理」包含Add/Update/Deactivate/View User Account),减少图面零散度。

3. 补全遗漏用例并区分相似操作

对照老师给出的用例列表,检查当前设计是否覆盖全部用例:

  • 确认是否遗漏了Expiration Alerts、Aging of Purchase Requisitions Report等用例;
  • 明确区分Cancel Purchase Requisition和Cancel Purchase Order这类相似但不同的操作,避免混淆。

4. 提升图面可读性

如果用例数量较多,建议通过**包(Package)**对不同模块的用例进行分组(如系统管理模块、采购模块、库存模块),避免图面杂乱无章。

内容的提问来源于stack exchange,提问作者darth-coder

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 23:47:48