You are on page 1of 17

OAF Project

Creation Date: June20, 2012


Last Updated:June20, 2012
Version: 1.0
OAF Project

Contents
1-Deploy to Application ................................................................................................. 1
1- Move Files to server ........................................................................................................... 1
2- Import Pages ....................................................................................................................... 2
3- Create responsibility and function and menu ................................................................ 3
A.Functions ...................................................................................................................... 3
B.Menu ............................................................................................................................. 3
C.Responsibility .............................................................................................................. 3
2-Create region to be imbedded in workflow notification ......................................... 5
3-Call workflow from OAF .......................................................................................... 13
4-Validation (Get message and profile option value)Error! Bookmark not defined.
Bounce Appache ............................................................................................................ 15

ii
OAF Project

1-Deploy to Application
Step Description
No.
1 Go to server to JAVA_TOP ( $COMMON_TOP/java)
If you dont know the path follow the below steps
2 1- Move Files to server
3 Login to application
4 Update profile options
Disable Self-Service Personal No
Personalize Self-Service Defn Yes
FND: Personalization Region Link Enabled Yes
FND: Diagnostics Yes
5 Login in again
6

7 Click on link
8 Open tab Java System Properties

9 Search for COMMON_TOP


10

11 Now go to the server to this path

1
OAF Project

12
13 Under this path we will copy project from myclasses
14

15 In cass you found xx folder you will copy folder start from project
16

17 2- Import Pages
18 In cmd run import comand in import.txt (Change your path and connections)
19

20 You must see import completed

2
OAF Project

21 3- Create responsibility and function and menu


22
A.Functions
23 Description tab
Function Name XXCREATEPERSON
User Function NameXX Create Person

Properties Tab
Type SSWA jsp function

Web HTML Tab


Html Call OA.jsp?page=/xx/oracle/apps/per/xxhr/webui/XxQueryPersonPG

Add another row

Description tab
Function Name XXCREATEJOB
User Function NameXX Create Job and position
Properties Tab
Type SSWA jsp function

Web HTML Tab


Html CallOA.jsp?page=/xx/oracle/apps/per/xxhr/webui/XxJobsAndPositionsPG

24
B.Menu
25 Menu
Menu XXPERSONMENU
User Menu Name Person Menu
SEQ Prompt Function
1 XX Create Person XX Create Person
2 XX Create Job and position XX Create Job and position

26
C.Responsibility

3
OAF Project

27

28 Now Assign responsibility to user and try to run pages


29

4
OAF Project

2-Create region to be imbedded in workflow notification


Step Description
No.
1 File New
2

4 Name XxPersonRN
Package xx.oracle.apps.per.xxhr.webui
Style StackLayout
5

5
OAF Project

7 Set Am efinition xx.oracle.apps.per.xxhr.server.XxHrAM


Set Standalon true

8 Right Click on XxPersonRN and set new controller


Package name xx.oracle.apps.per.xxhr.webui
Class Name XxPersonCO
9

10

6
OAF Project

11

12

7
OAF Project

13

14

8
OAF Project

15

16

17

9
OAF Project

18

19

20 In CO (XxPersonCO) inImport scetion


import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.OAApplicationModule;
21 In processRequest
OAApplicationModule pXxHrAm = pageContext.getApplicationModule(webBean);
//Get personId is a parameter will be sent by WF
String pPersonId = pageContext.getParameter("pPersonId");
//Get VO
OAViewObject PersonVO = (OAViewObject)pXxHrAm.findViewObject("XxPersonVO1");
//Set where
PersonVO.setWhereClause("person_id = " + pPersonId);
//Execute Query
PersonVO.executeQuery();
22

10
OAF Project

23 Define function
24 Description tab
Function Name XXPERSONRN
User Function NameXX Create Person RN

Properties Tab
Type SSWA jsp function

Web HTML Tab


Html Call OA.jsp?page=/xx/oracle/apps/per/xxhr/webui/XxPersonRN
25 Import page in import RN.txt
26 Copy new class to the server
27 We have a simple workflow attached
28

29 XXPERSONRN is attribute with type Document


30

31 Value
JSP:/OA_HTML/OA.jsp?OAFunc=XXPERSONRN&pPersonId=-&PERSON_ID-
32 &pPersonId the parameter we will send to the region
33 -&PERSON_ID- attribue in workflow
34 In Message Body

11
OAF Project

35

36 In next step we will call this workflow from the oaf page when press save button

12
OAF Project

3-Call workflow from OAF


Step Description
No.
1 In Co (XxMainPersonCO)
In import sction

import oracle.apps.fnd.framework.webui.OANavigation;
import oracle.apps.fnd.framework.OAViewObject;

in save action
Before call the XxQueryPersonPG we will call WF

OAViewObject PersonVO = (OAViewObject)pXxHrAm.findViewObject("XxPersonVO1");


String pPersonId = PersonVO.getCurrentRow().getAttribute("PersonId").toString();
String strWfItemType = "XXPERSON";
String strWfProcess = "XX_CREATE_PERSON_PRC";
String strWfItemKey = pPersonId;
OANavigation wfNavigation = new OANavigation();
// Create Workflow Process
wfNavigation.createProcess(pageContext, strWfItemType, strWfProcess, strWfItemKey);
wfNavigation.setItemOwner(pageContext,pageContext.getUserName());
wfNavigation.setItemAttrText(pageContext,"PERFORMER","SYSADMIN");
wfNavigation.setItemAttrText(pageContext,"PERSON_ID",pPersonId);
// Start Workflow Process
wfNavigation.startProcess(pageContext, strWfItemType, strWfProcess, strWfItemKey);
2

3 Run XX_CREATE_PERSON_WF.pkb and XX_CREATE_PERSON_WF.pks


4 Copy changed files to server and bounce appache
5 Run page from application and create person and save

13
OAF Project

6 There will be a notification in SYSADMIN worklist


7

8 Open notification
9

14
OAF Project

Bounce Appache

$ADMIN_SCRIPTS_HOME

/appltop/proderpcomn/admin/scripts/DEVERP_cserpappd1/adapcctl.sh stop
/appltop/proderpcomn/admin/scripts/DEVERP_cserpappd1/adapcctl.sh start

C:\oracle\VIS\inst\apps\VIS_amr\admin\scripts\adoacorectl.cmd stop
C:\oracle\VIS\inst\apps\VIS_amr\admin\scripts\adoacorectl.cmd start

C:\oracle\VIS\inst\apps\VIS_amr\admin\scripts\ adapcctl.cmd stop


C:\oracle\VIS\inst\apps\VIS_amr\admin\scripts\ adapcctl.cmd start

For windows you will find same script at same location

15

You might also like