Professional Documents
Culture Documents
How To Integrate OAF Region in Oracle Workflow Notifications
How To Integrate OAF Region in Oracle Workflow Notifications
-1TCS Internal
Introduction This document gives a step by step description of the following: How to integrate an OAF region in the oracle workflow notification. How to create a Function using Oracle Apps.
Step 1: Create an attribute of Type: Document in Oracle workflow Builder. Specify the Value of this document type attribute as: JSP:/OA_HTML/OA.jsp?OAFunc=CRD_NOTE_ID_OAF_REGION-&initiationReqId=&CREDIT_NOTE_REQUEST_NUM-&invType=-&INV_TYPE_EC&refCrdNoteNumber=-&CREDIT_NOTE_REFERENCE_NUM
-2TCS Internal
Figure 1
-3TCS Internal
In the value: JSP:/OA_HTML/OA.jsp?OAFunc=CRD_NOTE_ID_OAF_REGION-&initiationReqId=&CREDIT_NOTE_REQUEST_NUM-&invType=-&INV_TYPE_EC&refCrdNoteNumber=-&CREDIT_NOTE_REFERENCE_NUM 1. CRD_NOTE_ID_OAF_REGION - Function This function is defined in Oracle Applications and points to the OAF page which we want to embed in the Notification region. OAF page should be standalone Region (Stack Layout) with a Custom Application Module and Controller attached to it.
2. initiationReqId / invType / refCrdNoteNumber variable Names By using this name we can get the attribute passed through the workflow in the OAF page.
-4TCS Internal
Step 2: To create a Function using Oracle Apps: Login in Sysadmin Application Function
Figure 2.2
-5TCS Internal
Figure 2.2
-6TCS Internal
Figure 2.3
-7TCS Internal
Step 3: To create a Message: Create a Message and drag the attribute (document type) in the message as shown below: By specifying &ITEM_ATTR_INTERNAL_NAME in the message body we can embed any message attribute (here OAF region).
Figure 3
-8TCS Internal
Step 4: To create a Standalone Region using OAF: In the Controller of the OAF Region: public void processRequest (OAPageContext pageContext, OAWebBean webBean) { super.processRequest (pageContext, webBean); OAApplicationModule am = pageContext.getApplicationModule (webBean);
// TO GET THE INITIATION REQUEST ID: 341 String initiationReqId = pageContext.getParameter ("initiationReqId");
// TO GET THE INVOICE TYPE: EC, PT, FE String invType = pageContext.getParameter ("invType");
// TO GET THE REFERNCE CREDIT NOTE NUMBER: SRV2010/00002 String refCrdNoteNumber = pageContext.getParameter ("refCrdNoteNumber"); }
-9TCS Internal
Final Result will be seen as shown below: OAF region in the Notification:
Figure 4
- 10 TCS Internal