用例图布尔情况

Use-Case Diagram Boolean Situation

用例图中是否存在布尔情况?如果不是这个,还可以这样做吗?这是我的例子:

用户不需要知道我们为他创建了用户,一切都发生在后台。所以它就像一个与另一台服务器通信的客户端应用程序。 如果用户已经存在于新服务器中,只需处理添加到购物车,否则,在另一台服务器上为该特定用户创建一个用户。

编辑:

感谢 Thomas Kilian 的建议,这应该是正确答案:

你的 UC 有几个缺陷(因为你正在尝试功能分解而不是综合;阅读 Bittner/Spence)。

  • 将边界显示为气泡是错误的。 UML 2.5.1 第 642 页:

    Note also that the subject rectangle does not imply that the subject classifier owns the contained UseCases, but merely that the UseCases apply to that classifier. In particular, there is scope for confusion between a UseCase appearing visually contained in a boundary rectangle representing a Classifier that is its subject, and appearing visually contained in a compartment of a Classifier that is its owner (see Figure 18.9).

  • Add to cartValidates user(应该是 Validate user)需要是 - -> <<includes>> 关系而不是关联.

  • Validate user 包括 Add to cart 似乎没有意义。将商品添加到购物车与用户验证完全不同。

  • Create users删掉)应该是一个反方向的<<extends>>。添加约束 { only for new users }.

  • Process add to cart 不是用例。这是 Add to cart UC 中的几个步骤(在用户验证后执行)。