How to use OAF Region in Oracle Workflow Notification Message

Share Button

Hello,

In Oracle Workflow, notification message contents are mostly PL/SQL generated HTML documents. In this tutorial, I am going to show how to use OAF Regions in Oracle Worklfow notification messages.

Before starting, we will use a previously developed OAF page layout as a standalone region. You can check that tutorial by clicking here.

1. Open JDeveloper and right click to webui package and select “New”.

oawf1   2. Select Web Tier -> OA Componenets -> Region and click OK button.

oawf23. Change region properties with the followings:

Name Package Style
XxTableDmlRN xxntc.oracle.apps.per.aniltablo.dml.webui stackLayout
oawf3 4. After regions has been generated by JDeveloper, copy controller class from previous tutorial. Change region properties with followings. Pay attention to moving controller from pageLayout region to stackLayout standalone region.

 

Property Value
Controller Class xxntc.oracle.apps.per.aniltablo.dml.webui.XxTableDmlRNCO
AM Definition xxntc.oracle.apps.per.aniltablo.dml.server.XxTableDmlAM
Standalone false

Controller Class:

5. Copy everything under pageLayout from previous tutorial and paste all of them into stackLayout region.

oawf4 oawf5 oawf6 oawf76. Build the project and import the region into database. I used import.bat script which is under \jdevin\oaext\bin

7. Put the class and bc4j xml files into server through FTP.

 

8. Define a form function for the region in EBS.

Fonksiyon Kullanıcı Adı Fonksiyonu Tip Web HTML
XX_DML_TABLE_RN XX_DML_TABLE_RN SSWA jsp fonksiyonu OA.jsp?page=/xxntc/oracle/apps/per/aniltablo/dml/webui/XxTableDmlRN
oawf8   oawf9 oawf109. Open Workflow Builder and create a new Item Type.

Internal Name Display Name Description
XXOAFTST XXOAFTST XXOAFTST
oawf11 10. Create new process in item type.

 

Internal Name Display Name Description
XXOAFTST_PRC XXOAFTST_PRC XXOAFTST_PRC
oawf12 oawf13

11. Create a performer attribute which is the role that receive notifaction message.

 

Internal Name Display Name Description Type Default Type Default Value
XX_PERFORMER XX_PERFORMER XX_PERFORMER Text Constant NTC_ANIL
oawf14 oawf15 12. Create a notification message.

Internal Name Display Name Description
XX_OAF_MSG XX_OAF_MSG XX_OAF_MSG

 

oawf17 oawf1813. Create a new attribute into the message.

Internal Name Display Name Description Type Source Frame Target Default Type Default Value
XX_OAF_REGION XX_OAF_REGION XX_OAF_REGION Document Respond New Window Constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_DML_TABLE_RN
oawf19 oawf20   14. Change message body and subject.

oawf21   15. Create a new notification.

Internal Name Display Name Description Result Type  Message Performer Type Performer Value
XX_OAF_NOTIF XX_OAF_NOTIF XX_OAF_NOTIF <None> XX_OAF_MSG Item Attribute XX_PERFORMER
oawf22 oawf27   16. Create START and END functions in the process.

oawf23 oawf24 oawf25   17. Draw the process. Connect start to notification and notificaiton to end.

oawf26 18. Save workflow file into database.

19. Start workflow with following script.

20. Test the results. Verify that OAF region placed in notification message and DML operations are working properly.

21. In order to check the results, Login with SYSADMIN. Go to “Workflow Administrator Web Applications”->”Administrator Workflow->”Status Monitor”. Find workflow that we already started with pl/sql script. Click to Go and list workflows. Select workflow and click “Activity History” button and open notification.

oawf28 oawf29 oawf30