Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Integrating OAF Notifications with Oracle Workflow:

In this Article, we will see how we can create a OAF notification and invoke it from
workflow. The OAF notification has many advantages like User can personalize the
notification region as per needs and moreover look and feel is same as ths standard
notifications.

1) Create a Document type Item Atribute(Custom Req Line Fwk Region) and specify the
value as displayed:

JSP:/OA_HTML/
OA.jsp?OAFunc=XXC_POR_REQLINES_NTFN_RN-&reqHdrId=-&DOCUMENT_ID-&funcCurr=-&FUNCTIONA
XXC_POR_REQLINES_NTFN_RN ; 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.

============
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
//We can get the parameters(reqHdrId and funcCurr) in the controller and initialize the
VO to show the results as mentioned below:
String reqHdrId = pageContext.getParameter("reqHdrId");
String funcCurr = pageContext.getParameter("funcCurr");
Serializable aserializable[] = {
reqHdrId, funcCurr
};
CustomReqLineNotificationAMImpl am = (CustomReqLineNotificationAMImpl)

pageContext.getApplicationModule(webBean);//We should never call


getRootApplicationModule here as it gives the AM specified at the Notification Page level and
not customApplicationModule
am.invokeMethod("initCustomNotificationVO",aserializable);
}
===========

2) Create a Message "Custom Requisition Approved JRAD" as shown below:

Message Body:

We can embed any message attribute in the body or subject by specifying


&ITEM_ATTR_INTERNAL_NAME. In the below screenshot, we are calling
XXC_REQ_LINE_FWK_RN message attribute, which will defined in the subsequent screen.
Create a Notification:
Points to remember:
-------------
If we want to display any attribute at header level in the Notification page, we can define
message attributes with internal Names(#HDR1) and set their values using Item Attributes.
We can not call OAF notification using fnd_notification.send API as this API uses the default
values of item attributes
Do not forget to SFTP files on the Apps Tier and import the Custom Notification Region.

You might also like