OAF Page in Workflow

Hello Everyone,
I did the following to call the OAF Page in the workflow notification. I see the region in created in the workflow notification but the VO is not getting executed i guess, so i don't see any values in that region.
1) Created a Region and in the processRequest, i did the following
String p_id = pageContext.getParameter("doc_id");
pageContext.putAttrDialogMessage(webBean,new OAException("param value is "+p_id));
// Serializable s1[] = {p_id};
OAApplicationModule oaappl = pageContext.getApplicationModule(webBean);
OAViewObject oaview = (OAViewObject)oaappl.findViewObject("TestVO");
oaview.reset();
oaview.setWhereClauseParams(null);
oaview.setWhereClauseParam(0,p_id);
oaview.executeQuery();
2) I created a Function in the application which calls the region as follows:
=OA.jsp?page=/xxx/oracle/apps/xxxhr/selfservice/testworkflow/webui/TestWorkflowRN
3) In the workflow, i defined an attribute and of type document and in the value property, i have given the following:
JSP:/OA_HTML/OA.jsp?OAFunc=TEST_WORKFLOW_FUN&doc_id=-&P_SR_DOC_NO-
4) When the workflow is being called, i am giving a value for the attribute P_SR_DOC_NO.
I see the region in the notification but no values in it. The VO is not executing. Any suggestion would really help me.
Thank you
Akhil

Hi,
Including the custom page in the notification is fine. But what i find was generally we will call workflow to send messages to the other person based on the business requirement at that time inclusion of page in notification may not be good.

Similar Messages

  • Link to OAF page from workflow notification

    I am trying to give a link in a workflow notification to the customer details page in R12. I decompiled the Controller classes of the customer pages to get the parameters that the page needs.
    The page I am trying to access is defined as a function , AR_CUS_OVR with webhtml call :
    OA.jsp?page=/oracle/apps/ar/cusstd/ovrview/webui/ArCusOvrPG&OAFunc=AR_CUS_OVR
    I got the url for this page using the following function :
    FND_RUN_FUNCTION.GET_RUN_FUNCTION_URL
    (25779,660,21623,null,'HzPuiPartyId=32551,cusType=ORGANIZATION,HzPuiSubjectPartyType=ORGANIZATION')
    When i paste this URL in the browser, if I am not already logged in , I am directed to the login page and then I get an error :
    You have insufficient privileges for the current operation. Please contact your System Administrator.
    If i am logged in, i directly get the above error.
    I searched the DB to see where this message is thrown but did not find any match. It's probably thrown from some OAF page.
    The function is attached to the menu and my user has the required responsibility. I can access the page if i login and navigate to the page.
    It's probably the URL , but I am not able to lay a finger on the problem. Please let me know if I am missing something here.
    Does anyone know when this error is raised.
    thanks,
    Satya

    I was trying to access the page by pasting the link directly in the browser. I guess that's why it was throwing the indufficient privileges error.
    If I click the link from the notification, it tries to bring up the page. But throws a sql exception about invalid number.
    I checked the controller code in ArCusOvrCO.java. If the parameter cusType is null, the controlller invokes a method to get custType by calling amethod in the AM which executes a sql statement, SELECT party_type from HZ_PARTIES where party_id = : 1
    This parameter HzPuiPartyId is used for this. It looks like all the parameters are passed as null even though I am passing them .
    Is the following way the right way of passing multiple parameters to the function :
    FND_RUN_FUNCTION.GET_RUN_FUNCTION_URL. I am just passing a comma separated list.
    'HzPuiPartyId=24553,cusType=ORGANIZATION,HzPuiSubjectPartyType=ORGANIZATION,HzPuiPartyName=EOM40,HzPuiObjectPartyType=ORGANIZATION,HzPuiObjectPartyId=24553'
    thanks,
    satya

  • Use OAF page and Workflow:

    Hi,
    In a workflow i have a OAF region refered as
    JSP:/OA_HTML/OA.jsp?page=/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN&INVOICEID=-&INVOICE_ID-
    Now instead of this region i created a new region satisfying my requirements.
    Then moved the region and importing to server.
    In the Workflow i changed the new region name.
    Now when i run my page the old region only displays. In the OAF page also i cant find the region to be called. But the region is available in the server.
    Please anyone help me.
    Thanks in Advance,
    Jegan

    You can't change existing workflow messages. This will violate oracle solutions support.
    you need to duplicate the workflow and duplicate the messages, then do the changes..
    If you have access level at 100, you can change the workflow.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can i use AME for the new OAF page.

    Dear all,
    I have developed a new OAF page and registered under Employee Self Service.
    How can i use AME for the approval process.
    Appreciate your ideas?
    zamora

    I will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
    Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
    Let's look at the workflow and putting an OAF Page as notification.
    As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
    In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC&paramId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
    If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
    Hope this gives some idea.

  • OAF page in the workflow notification

    Hi,
    I have a custom OAF page and a custom workflow. When the page is submitted, i am invoking the workflow. I was just wondering if i can put the page screen shot in the workflow notification so that the users doesn't have to worry about logging back into the page to check the details. Is there any option?
    Thanks

    Hi,
    Including the custom page in the notification is fine. But what i find was generally we will call workflow to send messages to the other person based on the business requirement at that time inclusion of page in notification may not be good.

  • OAF Personalization : print output of a query on a OAF page

    I have a requirement in OAF form.
    Wanted to check if it is possible
    I needed to print a value on the form which would be a query output.
    Basically in my requisiiton workflow i have changed teh approver.
    Based on that the OAF page doesnt reflect the change. I need to change the OAF page but just by personlization. Want to check if this is possible.
    In short, I want to write a query and get an output and print that on the screen of a OAF page.

    user8655468 wrote:
    I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
    set the frame print object on: Last page
    Hope this works..

  • Can we integrate AME in a new OAF page

    Hello,
    I'm working on a new OAF page which goes for approvals after submitting the page. I can use workflow notifications and approvals but i'm just wondering if i can integrate an AME to the custom page so that the approval routing can be handled using AME and also i want to show the list of all the approvers in the review page before submitting the OAF page.
    I would appreciate if someone can let me know if this is possible. If you also can guide me how, that would be great!
    Thank You
    KK

    Hello KK,
    Follow below steps
    1. Configure AME. If you have a separate configuration team, ask them to do it according to your requirements. If you are supposed to do this then go through oracle documentaion.
    2. Create a custom database procedure.
    3. Call AME_API2.GET_ALL_APPROVER7 api inside the procedure created in step2. This is the standard API which calls ame engine by passing transaction ID and the AME engine will return the list of approvers back for that transaction ID. Return the list of approvers to the custom procedure you have created in step 2
    4. If you have to generate the list of approvers on click of a button, then in the button click event, call the custom procedure you have created in step 2 using oracle callable statement. You can see an example in the link provided below on callable statement.
    http://oa-learning.blogspot.com/2011/08/plsql-program-unit-call-from-oaf.html
    Hope this will atleast help you to start on this.
    Regards
    Sunny

  • Third party address validation in ESS pages using workflows

    Can anyone help out in giving some ideas for solutioning the following.
    Address entered in the page "Main Address: Enter New Address" of
    Employee Self Service needs to be validated using third party PL/SQL API. This PL/SQL API is available in the same schema where HRMS objects are available. After the validating the address, user can be shown recommended or invalid address message when address entered is not valid. User can accept the recommended address or reject it in which case the original user entered address would be saved.
    ESS pages are using workflows. What is the best design to call the third party address validation from the workflow and show the page with recommended address/invalid address message with "Accept" and "Reject" options. Can anyone help out on what are the technical possibilities to implement this address validation in the ESS page?.

    After the validation, user is shown a page with "Ok" and "Cancel" options ( please note as said earlier we are not going with "Accept" or "Reject") along with recommended address if the address needs to be corrected. If user clicks "Ok", user will be in the Address update page and can edit the address with the recommded address. If user clicks "Cancel", control goes to next page by saving the address what ever is entered intially.
    After passing through the validation logic in the work flow process and based on the result returned, can a OAF page be invoked which can show recommended address with OK and Cancel buttons?

  • Send Notifications Manually and show in OAF Page

    Hello,
    i need some suggestions on how to send Notification in EBS.
    System description: R12, Database 11g
    Scenario:
    We have the standard Notifications (Worflow List) Region showing in a OAF Page.
    I want to send manually Notifications, so see these in the Notification Worklist.
    What standard methods are existing to handle this approach?
    Thank you very much!

    Hi,
    You have to start (trigger) the for workflow by calling an PL/SQL block when an event is raised from a OAF page.
    To set the OAF region on to the notification use a Document type attribute in the workflow and set the path
    like JSP:/OA_HTML/OA.jsp?OAFunc=<Registered Function Name>&Parameter1=<value>
    Hope this would help.
    Regards,
    achapla

  • Getting an error when calling oaf page via notifications

    I am getting the below error when calling an OAF page(workflow) via notifications .
    It's working fine when i am not calling through notifications.
    Error:-
    You are trying to access a page is no longer active.
    -You may attempted to access to this page directly by bookmarkking the page or
    copying URL.This page doesn'y support bookmarking.
    -The referring page may have come from a previous session.Please select home to proceed.

    Hi,
    Refer below threads:
    You are trying to access a page that is no longer active
    You are trying to access a page that is no longer active.
    You are trying to access a page that is no longer active.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How do you merge two OAF Pages?

    Hi Experts,
    I need to merge regions of one OAF page into another in R12. In this example, it is an AP Approval Notification where in the notification there is a link where it opens into another page which details the lines in the invoice. The idea is to put some of the information in this second page into the first, so there is only the one page in the notification so the user does not have to click into another.
    I've never had to do this before and would welcome any comments on the approach. My idea is to customise the first page, i.e the main notification. The top and bottom parts page of the page is made up of standard workflow notification regions. This I would leave as it is. The central part is made up of a region that is specific to ap invoice. I could extend this region and add in the region from the second invoice lines page that I need, I would also migrate the functionality required in the controller class to the controller class in the first page.
    How does this sound? Is there anything else I need to consider?
    Many thanks,
    Mark

    Hi All,
    Many thanks for your help, which has been useful.
    The central part of the notification that is referenced by the AP workflow is the following page:
    JSP:/OA_HTML/OA.jsp?page=/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN;INVOICEID=-&INVOICE_ID-&ITEMKEY=-&NOTIFICATION_KEY-&ITEMTYPE=-&ITEMKEY_CONST-
    Under this following page (/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN) there is the following region:
    oracle.apps.ap.invoice.request.negotiation.webui.NotifPGRN
    So this is the main notification. On it, the lines page is referenced as a link and this goes to the follwoing region:
    /oracle/apps/ap/invoice/request/negotiation/webui/InvPoLineRN
    So just to re-iterate, I need to insert this lines region into the first page. Could I then do it by taking the controller classes out of the lines region and adding it to controller classes of the main page region and having this main page region substitute the region that is already present?
    I'm trying to get in my head what is the right approach and technically what I need to consider. Any help again is greatly recieved.
    thanks,
    Mark

  • How do I raise a Business Event from a OAF page?

    Hello,
    I am developing a custom system using the OAF and need to raise a custom Business Event, which in turn will have a subscription to launch a workflow process.
    How do I raise a Business Event from a OAF page ?
    Can I use the classes in oracle.apps.fnd.wf.bes.* ?
    Any help would be highly appreciated.
    Best Regards,
    Andries Hanekom

    Hi,
    When I try to compile just the basic part of my class I receive the following error:
    Error(21,36): cannot access class javax.jms.TextMessage; file javax\jms\TextMessage.class not found
    Class Code:
    import oracle.apps.fnd.wf.bes.BusinessEvent;
    public class VscmsEvents
    public VscmsEvents()
    public static void main(String[] args)
    VscmsEvents vscmsEvents = new VscmsEvents();
    //Initialize BusinessEvent, Payload objects
    public void initEvent(String eventName, String eventKey, String eventData)
    //Create BusinessEvent Object
    BusinessEvent mEvent = new BusinessEvent(eventName, eventKey);
    Furthermore, when using the BusinessEvent object to raise the event I will need to provide the raise method with a java.sql.Connection parameter. In the context of a OAF page how will I perform this?
    Thanks for the help.
    Best Regards,
    Andries Hanekom

  • XML Publisher Report Output from OAF Page

    Hi,
    I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
    Please see the below code.
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
    String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
    System.out.println("s1 = " + s1);
    String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
    System.out.println("s2 = " + s2);
    String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
    CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
    System.out.println("s3 = " + s3);
    if(requestId != 0)
    try
    Number number = new Number(requestId);
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, number.intValue());
    callablestatement.setString(3, s2);
    callablestatement.setString(4, s1);
    callablestatement.execute();
    String s4 = callablestatement.getString(1);
    System.out.println("Before S4 if statement");
    if(s4 == null || s4.equals(""))
    // throw new RuntimeException();
    System.out.println("URL is null");
    System.out.println(" print ouput url - " + s4 );
    // throw OAException.wrapperException(exception);
    oadbtransactionimpl.putValue("OutputURL", s4);
    System.out.println(" print ouput url - " + s4 );
    }

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

  • Stale data error while opening a multiple OAF page .

    Dear Friends ,
    I have a OAF page developed and deployed in server , its basically a search page , it also has several links to
    go to create page and update page . when the user opens the multiple page using different tabs in the browser
    like for example
    ex :
    from search page click on create page open it as new tab . if such multiple table are being opened
    and do some operation like search a record , it gives and error (stale data : Developer's mode exception ) .
    How to over come this exception , could you please share you ideas
    Thanks in Advance,
    Keerthi.k

    Hi friend ,
    In Search page i didn't do any update. and also search page is not a problem it's working fine. create page only the problem. In this page only throwing Stale data error exception.
    Please give me more suggestion.
    Thanks in advance,

  • Getting error while running OAF page from jdeveloper

    Hi All,
    While running a OAF page from jdeveloper i am getting the below error, please help me out.
    http 500 Internal Server Error
    Thanks

    Hi ,
    Check in Embedded oc4j Server preference by
    tools-> Embedded oc4j Server preferences ->Startup ->
    choose the radio button for Host Name or IP Address as
    Specify Host name as your laptops ip Address.
    If still it didn't work, share your Jdev console log error.
    Thanks,
    With regards,
    Kali.
    OSSi.

Maybe you are looking for

  • AP report purchase in 3 years

    Hi Experts, I got a requirement to create AP report purchase in last 3 years. I need these fields in the BI report. VENDOR NAME1 PO Number PO Date Invoice Date Invoice Due Date Payment Date Days w/o payment Amount Invoice Number Can any one please gu

  • Mapping to simplify structure of XML for File Adapter

    Hi everybody Here is a short question regarding the restructuring of an incoming IDoc message to an outgoing file. The IDoc has the structure: -IDoc ___-->Segment A1            ______--> Segment B1    _________-->Segment C1  _________-->Segment C2  _

  • Make to Order settings in Sales Order

    Hi All, When setting up Make to Order I am not able to get the requirement type to default in to the procurement tab. I have strategy 20 set in the material master. The item category is TAK. I believe it is possible to get the requirement type 'KE' t

  • When trying to open documents, getting error as File is not a valid Win32 application

    Hi, I am trying to open a MPP by clicking on the name of the file. But I am getting the error as "path\filename.mpp is not a valid Wind32 application". I am able to save the document and open it in MPP, but clicking on the document name is giving thi

  • Correlation for asynchronous system via websphere MQ from a BPEL client

    I could able to find samples for correlation in BPEL while invoking asynchronous webservices. Query 1. Are there any samples for Correlation while invoking asynchronous system via websphere MQ from a BPEL client? Eventhough I could see some BPEL samp