Friday, 3 August 2018

extend and include in UML

Include = reuse of functionality 
Extends = new and/or optional functionality

The include relationship allows one use case to include the steps of another use case.
For example, suppose you have an Amazon Account and you want to check on an order, well it is impossible to check on the order without first logging into your account. So the flow of events would like so...
enter image description here

The extend relationship is used to add an extra step to the flow of a use case, that is usually an optional step...
enter image description here
Imagine that we are still talking about your amazon account. Lets assume the base case is Orderand the extension use case is Amazon Prime. The user can choose to just order the item regularly, or, the user has the option to select Amazon Prime which ensure his order will arrive faster at higher cost.

No comments:

Post a Comment