12.07.2015 Views

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5. Guidelines 132stub was needed <strong>to</strong> make crComputer available. This is a technology relatedissue ( see 5.4.1 for more details ). The second project is crCommons.This is a shared library that is included <strong>to</strong> canonical resource project. Theproject provides database related operations like executeResultQuery orgetConnection.7. Identify and wrap in<strong>to</strong> services all entity related codeApplied SOA pattern: Entity AbstractionApplication: MVC pattern has two components containing business logic.The first is Model which should be investigated at the begging and controllerwhich potentially can contain core logic but it should not. TRWAMProject is a Create-Read-Update-Delete (CRUD) based application. TR-WAM’s Model contains only DAO classes and corresponding entities. Controllerdoes not contain only work flow controlling code. It also has a coderesponsible for generation <strong>of</strong> a new id <strong>of</strong> assets. This generation activityshould not be a part <strong>of</strong> controller, because controller delegates tasks. Existence<strong>of</strong> a non-work flow related code attests <strong>to</strong> braking structure <strong>of</strong> thepattern. Asset number generation should be separated in<strong>to</strong> an asset-relatedCore Logic service.Output: A new project is created. The service is named eaAsset<strong>Service</strong>. Theservice provides operation <strong>Service</strong> providing following operation “generateidentifiers” The operation takes collection <strong>of</strong> services and starting numberas arguments.8. Identify and wrap in<strong>to</strong> services business rulesApplied SOA pattern: Rule CentralisationApplication: Available TRWAM documentation (SPECYFIKACJA REGU I OGRANI.doc)contains sixteen business rules and five domain constrains.(a) Group 1: OGR/2, OGR/3OGR/2: An asset has <strong>to</strong> belong <strong>to</strong> one category: time depreciatingor others(b) Group 2:Rules defining processes are described in form <strong>of</strong> use cases.(c) Group 3:REG/01, REG/02,REG/03,REG/04,REG/05,REG/06,REG/07,REG/08,REG/09, REG/10, REG/11,REG/12,REG/13, REG/14, REG/15,REG/16,OGR/1, OGR/4REG/02: An asset can be lend if executives allowed.REG/03: Lending person creates a lend note during asset lending.OGR/4: Numbers <strong>of</strong> assets are unique. Each asset may have morethan one asset number.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!