Use-Case Controller
Ademar Aguiar, Alexandre Sousa, Alexandre Miguel Pinto · European Conference on Pattern Languages of Programs · 2001
The Use-Case Controller pattern deals with the problem of mapping use case specifications to an implementation that is cost -effective and easy to maintain. The pattern suggests delegating the responsibility for managing the use-case flow of execution to a use-case controller object, thus localizing this knowledge and its eventual future changes. Use-case controllers provide a uniform way of coordinatin g actor events, user interfaces and system services. Additionally, use-case controllers enlarge the potential variability of use cases, either by enabling the plug-in of use case extensions and inclusions, or by replacement of user interface components and system components. Consider an order -processing system for an online order company that is a reseller of products from several suppliers. When customers want to purchase products, they place an order accompanied with payment information. While adding products for an order, customers are able to save it for later use. Orders can be freely cancelled after being placed, but before being shipped.