Flow of Control (original) (raw)
The flow of control begins at the controller, moves through the use case, and then winds up executing the presenter.
Register Flow of Control
- A request is received by the
CustomersControllerthen thePostaction is invoked. - The
Postaction creates aRegisterInputmessage then theRegisteruse case is called. - The
Registeruse case creates aCustomerand anAccountentities. Repositories are called, theRegisterOutputmessage is built and sent to theRegisterPresenter. - The
RegisterPresenterbuilds the HTTP response message. - The
CustomersControllerasks the presenter for the current response message.
Get Customer Details Flow of Control
- A request is received by the
CustomersControllerthen theGetCustomeraction is invoked. - The
GetCustomeraction creates anGetCustomerDetailsInputmessage thenGetCustomerDetailsuse case is called. - The
GetCustomerDetailsuse case asks the repositories about theCustomerand theAccount. It could call theNotFoundor theDefaultoutput port of theGetCustomerDetailsPresenterif it exists or does not. - The
GetCustomerDetailsPresenterbuilds the HTTP response message. - The
CustomersControllerasks the presenter for the current response.