Oaf Session

Post on 13-Mar-2015

160 views 7 download

transcript

OA Framework Basics3rd April, 2009Parag Narkhede, Blink Consulting Pvt Ltd

1India OAUG Webinar Series

Blink Consulting Private Limited

Blink Consulting is a dynamic and fast growing software consultancy providing Business Information Systems solutions, Business Intelligence Solutions and Application Maintenance Outsourcing to Customers in diverse industriesOur Core Services consist of Strategy, Business Architecture, Solution Delivery, Operate and Oracle e-Business ConsultingContact Information

INDIA – PUNE Blink Consulting India Pvt. Ltd., S. Number 131, Mumbai – Pune Highway Pune, Maharashtra, INDIA +91 20 30637200

USA – BOSTON Blink Consulting Inc. 945 Concord Street Framingham, MA 01701 USA +1-917-873-9763

USA – DALLAS Blink Consulting Inc. 1400 Preston Rd, Suite # 400 Plano, TX 75093 USA +1-972-665-9943

2

Agenda

What is OA Framework?Why OA Framework?OA Framework ArchitectureMVC Architecture and its componentsProfile OptionsWhich version of JDeveloper?JDeveloper StructureDevelopment of Search pageSummaryQ & A

3

What is OA Framework?

Oracle Application Framework (OA Framework) is a proprietary framework developed by Oracle Corporation for application development within the Oracle E-Business Suite.

Available to customers for personalization, customizations and custom-application development.

The OA Framework is a Model-view-controller (MVC) framework built using J2EE (Java 2 Platform, Enterprise Edition) technologies.

4

Why OA Framework?

Advantages :

Enterprise-Grade Performance and Scalability

Improved End User Productivity

Highly extensible architecture

Browser Look and Feel (BLAF terminology) for all applications

Open industry Standards such as XML, HTML, Java, JSP, SQL and Web Services.

5

OA Framework Architecture

OA Framework architecture is based on Model-View-Controller (MVC)design pattern.

6

Components of MVC Architecture

Model:DataImplemented using Oracle Business Components for Java (BC4J).

1. EO (Entity Object)2. VO (View Object) 3. AM (Application Module)

View:User Interface.Implemented using an Oracle technology called UIX. (UIX = User Interface XML).

Controller:CodeUser actions are handled by the OA Controller. (Ex: Clicking SUBMIT button)

7

Interaction between model,

view and controller

8

Controller Class

AM

VO EO

Data base

HTTP Response HTTP Request

HTML Page

Controller

View

Model

*AM-Application Module*VO-View Object*EO-Entity Object

Entity Object (EO)

Entity Object is based on database table or other data source.

Entity Object contains attributes which represent database columns.

All insert/update/delete (DML Operations) transactions go through EO to database.

9

View Object (VO)

Two types

1. SQL based

2. EO based

Represents a query result.

Is used for joining, filtering, projecting, and sorting your business

data.

Can be based on any number of entity objects (EOs) and provides

access to EOs.

10

Application Module (AM)

Container for VOs.

Every page must have a root application module.

Handles transactions.

11

View in MVC Architecture

12

Controller (CO) in MVC Architecture

Responds to user actions and directs application flow.

Model objects like EO and VO can't be accessed directly from theController Class, except AM.

Contains methods such as

1. ProcessRequest: Fires when OAF page loads for the first time.

2. ProcessFormRequest: Fires when user submits the page.

(Ex: clicking SUBMIT button)

13

Controller Class (CO) (Cont.)

14

MVC Architecture

15

Onion Architecture of OA Framework

OA Framework can be extracted into a series of concentric layers, like an onion.

Each layer only “knows” about the layers below it.

16

Profile Options

FND: Personalization Region Link Enabled Enables the "Personalize Region" links on a page if the Personalize Self-Service Definition.

FND: Diagnostics Renders the "About this page" link at the bottom of every OA Framework page.

Refer to Metalink document id 275876.1 for more profile options.

17

Which version of JDeveloper?

Developer, must use the specific build of JDeveloper that corresponds to their runtime environment.

Following table illustrates which JDeveloper ARU corresponds tothe runtime patch set installed in your 11.5.10 environment:

11.5.10 Runtime Patch Level Corresponding JDeveloper

ARU ATG.PF.H (3438354) 4045639

ATG CU1 (4017300) 4141787

ATG.CU2 (4125550) 4573517

11i.ATG_PF.H RUP3 (patch 4334965) 4725670

11i.ATG_PF.H RUP4 (patch 4676589) 5455514

11i.ATG_PF.H RUP5 (patch 5473858) 6012619

11i.ATG_PF.H.RUP6 (patch 5903765) 6739235

Refer to Metalink document id 275846.1 for more details.18

19

JDeveloper Structure

OAWorkspace.jws

OAProject1.jprOAProject2.jpr

.

.

<CUSTOM_TOP>.oracle.apps.<APPL_TOP_NAME>.schema.serverEO1EO2

<CUSTOM_TOP>.oracle.apps.< APPL_TOP_NAME >.serverVOAM

<CUSTOM_TOP>.oracle.apps.< APPL_TOP_NAME >.webuiPG

Level :1

Level: 2

Level: 3

JDeveloper Structure (Cont.)

20

Development of sample search page

21

Summary

What is OA Framework and Why OA Framework?MVC Architecture and its Components (Model-View-Controller).Model Consists of AM,VO,EO.View is user interface which renders as HTML page.Controller is Java class implementation which handles user actions and responds to them.3-Tier and Onion architecture of OA Framework.Profile options.JDeveloper version and its structure.Development of search page.

22

23

Q & A

24

Thank You

E-mail: pnarkhede@blinkconsulting.com