Reputation: 1
"All current patients will be registered with the new system and receive notification of their registration."
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?
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?
Upvotes: 0
Views: 569
Reputation: 36313
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.
Upvotes: 2