oaf trng part4 print

19

Upload: bharath

Post on 15-Nov-2014

391 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: OAF TRNG Part4 Print
Page 2: OAF TRNG Part4 Print

Oracle eBusiness SuiteOA Framework Workshop

Page 3: OAF TRNG Part4 Print

OA FrameworkStandards

Page 4: OAF TRNG Part4 Print

Topics

• Value Proposition• Directory Structure• General Naming Rules• Package Naming• Page Naming• Region Naming• Item Naming• Examples• Summary

Page 5: OAF TRNG Part4 Print

Value Proposition

• Reduce cost of maintaining our code• Ease of customization by 3rd party

consultants• Ease of reuse by members of the same

team and members of other teams• Ease of documentation and readability• May aid us in automating certain

processes

Page 6: OAF TRNG Part4 Print

Directory Structure

Page 7: OAF TRNG Part4 Print

General Naming Rules

• Name length: – File names are limited to 30.3 characters.– For performance reasons, object names

(internal ID’s) are limited to 30 characters.– Use the shortest possible names that are

readable.– Consider abbreviating repeating object

names.

Page 8: OAF TRNG Part4 Print

General Naming Rules

• Abbreviations: – Common abbreviations are acceptable to keep names

as short as possible. – A common abbreviation that is acceptable is one that

can be instantly understood by a third party consultant.

– Examples of acceptable abbreviations are: Emp for employee; Num or No for number; and Desc for description. If in doubt don’t abbreviate.

Page 9: OAF TRNG Part4 Print

General Naming Rules

• Conflicts: – If after applying the naming convention you

run into naming conflicts, the general rule is to prefix the second and above instances of the conflicting name with a short version of the parent object’s name.

• Reserved words: – the word name is reserved and can’t be used

as the name of any object.

Page 10: OAF TRNG Part4 Print

Package Naming

• Sub-directory package name: should clearly indicate the name of the sub-component and be all in small cap letters. – Example: oracle/apps/per/selfservice/emppersonalinfo/webui

• XML file package name: should clearly indicate the name of the sub-component and follow the Java class name standards. – Example: oracle/apps/per/selfservice/webui/PerEmpPersInfo.xml

XML file or a sub-directory signify a single functional unit (sub-component) of the application

Page 11: OAF TRNG Part4 Print

Page Naming

• The page name (both embedded and XML filename) takes the form ObjectFunctionPG and should follow the Java class name standard

• Create and Update functions are considered the default and dropped from the page name

• Examples: UsrInfoPG, UsrContactsPG, UsrEnrollmentsPG, UsrInfoViewPG, UsrSearchPG

A page represents a step in a task flow. Pages are associated with an object and a function.

Object examples: employee, purchase order

Function examples: view, search, home page

Page 12: OAF TRNG Part4 Print

Region NamingFour categories• The Top Region:

– has the pageLayout style

• Content Regions– Composed of a single region/hierarchy that represents a

single UI functional unit

• Layout Regions– Used solely to compose the real-estate layout for a content

region that doesn’t have built-in framework support

• Navigation Regions– BLAF recognized navigation regions that are given special

names such as page tabs, locator element, quick links

Page 13: OAF TRNG Part4 Print

Top Regions Naming

• Should be named PageLayoutRN

Page 14: OAF TRNG Part4 Print

Content Regions Naming• When the first child region of the top region

encompasses all other regions, it should be named MainRN

• Page level region the include a key of indicators should be named KeyRN

• Parent region level region that include a key of indicators name is qualified with a short version of the parent content region name (e.g. ResultsKeyRN)

Page 15: OAF TRNG Part4 Print

Content Regions Naming• Region name (both embedded and XML filename) should

take the form takes the form ObjectFunctional-structureRN and should follow the Java class name standard.

• Object examples: employee, contact• Functional-structure examples: Master form (Master),

Detail table (Detail), Search criteria (Search), Search Results, Table, HGrid, Tree and the default data entry Form.

• The Form structural-function is considered the default and dropped from the region name

• Examples: EmployeeRN, EmpMasterRN, EmpContactsDetailRN, EmpSearchRN, EmpTableRN

Page 16: OAF TRNG Part4 Print

Layout Regions Naming

• Name should be a noun that concatenates a [short reference to the parent or child object] + [location indicator] + a short name of the layout style and should follow the Java class name standard.

• Examples: ContactsTableLayout, ButtonsRow, ContractsSpacerRow, EmpTopRow, ContactsRow1

Page 17: OAF TRNG Part4 Print

Navigation Regions Naming

• Name take the form ScopeLocationBLAFNameRN and should follow the Java class name standard

• The relative location can be dropped if the result won’t be confusing

• The region scope can be dropped if the region scope can be inferred implicitly; like breadcrumbs

• Examples: PageTopNavLinksRN, PageBottomNavLinksRN, PageActionButtonsRN, QuickLinksBarRN, TrainRN

Page 18: OAF TRNG Part4 Print

Item Naming

• The item name should use its label and should follow the Java class-naming standard

• For objects with no label use the name of the associated object

• Use a made-up unique name as a last resort to substitute for the label.

• Examples: SupplierName, Salary, EmpType, Go, ResultsGo

Items map to persistent or transient data objects.

The item label is typically a user-friendly name of the underlying data object name

Page 19: OAF TRNG Part4 Print