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 2. Related Work 18Reposi<strong>to</strong>ry – s<strong>to</strong>res Finite State Au<strong>to</strong>ma<strong>to</strong>n (FSA) files with correspondingScreen Templates, Au<strong>to</strong>mation Variables and actions executed by wrapper afterreaching this particular state. These actions include [23]:1. Init –sets Au<strong>to</strong>mation Variables based on <strong>Service</strong> Request Message2. Set Input Field –sets a value <strong>of</strong> an input field3. Get Output Field –gets a value <strong>of</strong> an output field from the legacy screen4. Submit Command –triggers transition from one state <strong>to</strong> another5. Set –Update Au<strong>to</strong>mation Variable –modifies values <strong>of</strong> Au<strong>to</strong>mation Variablesbased on output <strong>of</strong> variables <strong>of</strong> legacy screen and other Au<strong>to</strong>mationVariables6. Build Response –creates a service response based on actual values <strong>of</strong> Au<strong>to</strong>mationVariablesAu<strong>to</strong>mation Engine – Au<strong>to</strong>mation Engine is a core <strong>of</strong> the approach. Theengine is a component that receives web service request and returns an output.Execution <strong>of</strong> Engine functionality starts once components receive URI <strong>of</strong> invokedfunctionality and corresponding input data. Component execution can be dividedin<strong>to</strong> three parts [23]:1. Start Activity –starts when the engine receives request message. Just afterthe start a corresponding XML description file is acquired from the Reposi<strong>to</strong>ryand the legacy system is invoked. The first screen returned by thelegacy system is obtained from Terminal and a current state is obtainedfrom State Identifier.2. Interpretation Activity –Interpretation Activities are a set <strong>of</strong> activities repeatedin a loop until the final state is not reached. The set includes execution<strong>of</strong> current state activities, update <strong>of</strong> variable buffer called Au<strong>to</strong>ma<strong>to</strong>nVariables, transfer <strong>of</strong> a new data <strong>to</strong> Terminal Emula<strong>to</strong>r and identification<strong>of</strong> a new state.3. Final Activity –when the last state has been reached, engine create anoutput message based on Au<strong>to</strong>mation Variables values.ProcessesIn order <strong>to</strong> achieve fully migrated system, three steps should be executed in asequence. The steps are following:

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

Saved successfully!

Ooh no, something went wrong!