简体   繁体   中英

Extend or Include correct in this scenario?

"All current patients will be registered with the new system and receive notification of their registration."

在此处输入图片说明

  1. I took register patient as the first use case here. Always after registering patient happens they send a notification. So I used extend. To show that registering process extends to send notification.(In my case I thought registering is the most important). So I drew like this.

    Is that a correct diagram?

  2. Someone else says it should be an include.

I don't understand why that person takes send notification as the main use case. Is this even correct? Please explain. In the scenario it says when a patient registration happens then only notification is sent.

Please explain the difference here. Is the second diagram correct? And what is the best to use?

I doubt that Send notification is a use case at all. If for any reason it were one, your first drawing is correct. The second is simply non-sense. The 2nd would need to reverse the direction to be somehow meaningful.

A -<<include>>-> B

means that B will always appear somewhere in A.

B -<<extend>>-> A

means that B will optionally appear somewhere in A.

Anyway, the use of those is a sign of functional decomposition. And that is plain wrong. Use cases must show added value for an actor. Nothing else.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM