How to present a condition of use?

I have this problem, my system is a clothing store that allows the customer to return the fabrics he bought after only one day of purchase.

Returning fabrics is a precedent ... but how can I imagine a one-day condition? I was thinking about using the Guard mode, what do you think?

+3
source share
3 answers

That you actually have two different use cases that have a common effect.

You want to create a basic use case for “Try returning clothes,” and then extend it to two different use cases that generalize to it, for example:

  • " "
  • " 1 " " "
  • " 1 " " "

, . , , .

+3

, .

  • : UML , ., , . , ( ), .
  • , (< 1 /" >= 1 ). [, , , ].
  • , " " (, ), , ( > 1 ).

:

  • ,
  • (1 )
  • ... ...

:

2.

3 ...

. . : .

+3

conditional statements are not used in use cases because the conditions consist of behavior. Such a use-case precedent is strange. use peremptory statements for your use cases, such as: "make registration", "complete order", etc.

+1
source

Source: https://habr.com/ru/post/1771810/


All Articles