Customize Oracle Workflow Approve button action

I have a requirement to add a confirmation dialog page on click of the Approve button of a Internet Expense Approval notification page.
Like if the Expense type is of a particular type then the user must be prompted with a confirmation page. if user selects Yes then it should lead to approval and if clicks No then should come back to the Notification page where he can review the Expense Report again and proceed again for approval.
Can the approval button click be customized to achieve this?
Please help.

Hi BM,
I found the even for Approve button (pageContext.getParameter("wklEvent").equals('RR0')), but we would need to know the what are the parameters we need to pass and and what is the forwardurl for when user click the Yes button in confirmation page.  Say example  in the below code what are the parameters we would need to keep for Dialogue page and again pass into seeded process. What is the URL we need to call for when user click "Yes" butto
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)    {
  HashMap params = new HashMap();
  //Here what are the parameters we need to keep when user click the Yes button
if(pageContext.getParameter("wklEvent").equals('RR0')){// When Approve button clkicked
  renderReqUpdateDialogPage(pageContext, params);
  if (pageContext.getParameter("updateYesEvent") != null) {
            pageContext.writeDiagnostics(this, "Inside updateYesEvent ",
                                             1);
            HashMap params = new HashMap();
  pageContext.setForwardURL("OA.jsp?page=/oracle/apps/pa/webui/InvRvwProjPG",
   null,
   OAWebBeanConstants.KEEP_MENU_CONTEXT,
   null, params, true,
   OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
   OAWebBeanConstants.IGNORE_MESSAGES);
public void renderReqUpdateDialogPage(OAPageContext pageContext,
                                          HashMap params) {
        OAException mainMessage =
            new OAException("EAP", "INV_RETURN_MSG");
        OADialogPage dialogPage =
            new OADialogPage(OAException.WARNING, mainMessage, null, "", "");
        pageContext.writeDiagnostics(this,
                                     "After OADialogPage dialogPage stmt ", 1);
        String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
        String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
        dialogPage.setOkButtonItemName("updateYesEvent");
        dialogPage.setOkButtonToPost(true);
        dialogPage.setNoButtonToPost(true);
        dialogPage.setPostToCallingPage(true);
        dialogPage.setOkButtonLabel(yes);
        dialogPage.setNoButtonLabel(no);
        pageContext.redirectToDialogPage(dialogPage);
thanks
SS

Similar Messages

  • Hiding com.sap.pct.srm.core.action.oldwfl.approve button in UWL InBoX

    Hi,
    Currently I am working on SRM upgrade project . How to remove/hide approve button in UWL inbox.
    Below xml code, using in UWL configuration file in portal:
    <ItemType name="uwl.task.webflow.srm.TS90000005.SAP_SRM" connector="WebFlowConnector" defaultView="com.sap.pct.srm.core.view.tasks" defaultAction="com.sap.pct.srm.core.action.launchWD.oldwfl.cont.approve" executionMode="default">
    <ItemTypeCriteria systemId="SAP_SRM" externalType="TS90000005" connector="WebFlowConnector"/>
    <Actions>
    <Action reference="com.sap.pct.srm.core.action.launchWD.oldwfl.cont.approve" />
    <!<Properties><Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/></Properties></Action>>
    </Actions>
    </ItemType>
    Implemented " uwlExcludeFromPreviewDetail" code in xml, but it is not working. Pls guide, how to tweak the properties definition a little bit to get it to work.
    By removing approval reference in xml code, approre button and inbox hyperlink both functionality disappear. As per my requirement, Inbox approve data should have hyperlink as it is and approve button should be disappear/remove/hide.
    Otherwise without hyperlink, user has to select any workflow item and click "Details" button. For this need xml code for enabling Details button
    Anybody light on this

    Hi,
    Remove the Approval action from the XML by deleting <Action reference="com.sap.pct.srm.core.action.launchWD.oldwfl.cont.approve" />
    Also on this, <ItemType name="uwl.task.webflow.srm.TS90000005.SAP_SRM" connector="WebFlowConnector" defaultView="com.sap.pct.srm.core.view.tasks" defaultAction="com.sap.pct.srm.core.action.launchWD.oldwfl.cont.approve" executionMode="default">
    change the defaultAction="viewDetail" to enable the hyperlink which will open up the detail if click on hyperlink. If you need to open up the details in SAP GUI (ITS), change the defaultAction="launchSAPAction"
    Hope this helps.
    Jigar

  • Is Oracle Workflow customization possible using APIs?

    Our Purchase Requisition gets approved through Oracle Workflow Notifications.
    Now I need to change Recipient of Notification,i.e. to change workflow on runtime (by using trigger on wf_notifications table) depending on some conditions.
    Please help which APIs should I call from trigger to change the forwarded to/ recipient.
    Can I use directly Send(),Forward(),Cancel() etc APIs contained in Package WF_NOTIFICATION ?
    I used Forward(), but it did not work.
    Please help.

    Just go through this link, you will get idea what to do for workflow
    Customizing PO approval workflow POAPPRV for email subject/body changes
    thanks

  • Rename ok button from FYI notification in oracle workflow.

    Hi All,
    In Oracle workflow the Client want to rename the OK button in FYI Notification. Is it feasible? If yes then how to do this.
    Please help.
    Regards,
    Uday
    Edited by: 823973 on May 10, 2013 12:03 AM

    Dear Pradeep,
    Thanks for your reply.
    If we use normal workflow button the user has to reply the answer with an email to notification mail server.We want to achieve the confirmation message with just a click of button.
    We are looking for all possible aspects to achieve the desired functionality.
    Regards,
    Rajesh

  • Oracle Workflow configuration in ADF for Approval Management

    Hi,
    Is there anyway to integrate the oracle workflow with ADF application so that we can have approval process also just like Self Service transaction.
    If not then how can we achive the approval management in ADf based application.
    Thanks,
    Tarun

    Tarun,
    There are no "steps" per se. You develop an application, and in that application you can use the workflow API's to do stuff. The app we built encapsulated everything into PL/SQL stored procedures, so we just called stored procs from service methods in ADF application modules to do what we needed to do. Sorry I don't ahve anything more detailed to share, but it really is just "develop a custom application that happens to use workflow APIs." If you had a specific question, I'd be happy to try to answer.
    I did not try to use AME, so I cannot comment on that. As far as I know, the "classic" Oracle Workflow product has been desupported for use in standalone applications, so if I were doing this today, I would not be developing new applications using Oracle Workflow, but would be using the capabilities in SOA Suite.
    John

  • Oracle WorkFlow not receiving responce from Notified Approver

    Hi,
    I have designed custom workflow for approval process in OM Oracle Apps. The workflow could able to send the notifications to the respective approver roles. And the approver getting notification and the 'APPROVED' the same, but the response is not reaching to the workflow engine I guess. When I go and check the workflow status for that order in OM the workflow process till the Notification sent, and it says notified to the assigned person. Even though approver approved the rest of the process not getting completed.
    Please let me know what could be the issue, would appreciate your response as I could not move forward.
    Thanks in Advance,
    Jakki Reddy

    hi Amit,
    Please post the details of the application release, database version and OS.
    The best start point is to get the number of one of those notifications and then run
    sqlplus apps/<passwd> @$FND_TOP/sql/wfmlrdbg.sql <notif #>
    It will generate a HTML file that you can check to see the details of the roles associated to the notification, as well as the notification attributes that are involved in the e-mail processing.
    You may also check on the following :
    - Setting Global Preferences of Oracle Workflow Admin Guide
    - Query the wf_users and verify/check on the values of notification_preference column.
    - Set Preferences of Oracle Applications User's Guide
    please see
    Workflow Mailer Not Sending Email Notification: java.net.MalformedURLException [ID 1116718.1]
    NOTE:1184846.1 - Troubleshooting Inbound & Outbound Email Notifications
    NOTE:1320509.1 - E-Business Suite: Oracle Workflow (WF) Product Information Center (PIC)
    NOTE:421245.1 - E-Business Suite Diagnostics References for R12
    Please check below thread and note:
    Notification Mailers Unavailable
    Also check:
    Oracle® Workfow Administrator ’ s Guide
    http://download.oracle.com/docs/cd/B19306_01/workflow.102/b15852.pdf
    Oracle Workflow Developer's Guide
    http://download.oracle.com/docs/cd/B19306_01/workflow.102/b15853/T361836T362168.htm
    Workflow Configuration and Troubleshoot
    Workflow Configuration and Troubleshoot
    Re: Workflow setup Questions
    ;) AppsMAsti :)
    Sharing is Caring

  • "PO APPROVAL" BUTTON이 PO APPROVAL WORKFLOW를 CALL하는 방법

    제품: Applications
    작성날짜 : 2006-05-30
    "PO APPROVAL" BUTTON이 PO APPROVAL WORKFLOW를 CALL하는 방법
    =====================================================
    PURPOSE
    Purchase Order나 Requisition Form에서 "PO Approval" Button이
    어떻게 PO Approval Workflow를 CALL하는지에 대한 방법을 기술함.
    Explanation
    1. Purchasing approbal에서 Approve button을 Click하게 되면,
    APPROVAL WINDOW form이 call됩니다.
    ==> this is form POXDOAPP.fmb
    ==> attached corresponding library file POXAPAPC.pll
    Both Enter Requisition and Enter Purchase Order forms call
    the same approval form.
    2. The library file "POXAPAPC.pll"은
    Procedure "PO_WF_APPROVE_C.SetUpWorkFlow" 가 존재하며,
    이 procedure는 POXWPA1B.pls package file안에 있는 procedure
    "PO_REQAPPROVAL_INIT1.Start_WF_Process"를 call하게 됩니다.
    3. 이 procedure가 workflow를 call하게 되어 workflow를 초기화하고
    아래의 parameter를 사용한 workflow를 통해 document를 처리하게
    됩니다.
    parameters:
    PO_REQAPPROVAL_INIT1.Start_WF_Process
    ( ItemType => ItemType,
    ItemKey => ItemKey,
    WorkflowProcess => WorkflowProcess,
    ActionOriginatedFrom => ActionOriginatedFrom,
    DocumentID => DocumentID,
    DocumentNumber => DocumentNumber,
    PreparerID => PreparerID,
    DocumentTypeCode => DocumentTypeCode,
    DocumentSubtype => DocumentSubtype,
    SubmitterAction => RequestorAction,
    forwardToID => forwardToID,
    forwardFromID => forwardFromID,
    DefaultApprovalPathID => DefaultApprovalPathID,
    Note => DocumentNote,
    printFlag => print_check,
    FaxFlag => fax_check,
    FaxNumber => fax_number,
    EmailFlag => email_check,
    EmailAddress =>; emailaddress,
    CreateSourcingRule => Create_Sourcing_Rule,
    UpdateSourcingRule => Update_Sourcing_Rule,
    ReleaseGenMethod =>; Rel_Gen_Mthd,
    MassUpdateReleases => l_massupdate_release, -- RETROACTIVE FPI CHANGE
    RetroactivePriceChange => 'N' , -- RETROACTIVE FPI CHANGE
    OrgAssignChange => l_org_assign_change );
    Reference Documents
    Note#289840.1

  • When Click on the Approve Button, workflow take to "page Cannot be Find"

    Hi all ,
    Please need your urgent help. I have an unique issue here as follows ..
    I have a OA Page where Page have a Apprvoal ( Workflow ) button, manager Clicking on the Approval Button which throws the erro r" Page Can not be found".
    Anybody faced this sort of issue and if you know the knwo the solution please help me in resolving the issue.
    Thanks and regards
    Raghu

    Hi Anil ,
    I am regular visitor to Forum and I thought I will get some clue or atleast some replies on the above thread.
    Please help me in resovling the issue.
    Here is the details of the issue that I am facing in in our application.
    1. I have a Approval Notification on a Page.
    2. After clicking the approve button , the control should take me to a Appoval Comments PAge.
    3. But after clicking the approval button I am getting ' Page Cannot be found error".
    4. I have four botton on this page ( like Redirect, Retunr,cancel ) even after clicking any of these also theos th same error.
    Haan ..... We are facing this issue in Prodution and Staging but the Developemnt instance its works fine.
    awaiting for your reply.
    Raghu

  • Approve button of PO Approval Notification not functioning properly

    Hello,
    We are using PO approval workflow for our PO approval process.
    The approve button of the email notification is not performing the intended action, that is approving the PO.
    Since the approve is not functioning,we had to approve it from oracle.Is there any reason for this?
    Kindly let me know if there is some solution to handle such issues.This is a critical issue because not all the approvers can login
    to oracle and approve this everytime.
    Thanks in advance,
    indu

    Pl post details of OS, database and EBS versions. Has inbound processing been enabled ? Has this approval process ever worked ? If so, what changes have been made that caused it to break ? Are there any error messages in the workflow log file ?
    Configuring the Oracle Workflow 2.6/11i.OWF.H Java-based Notification Mailer with Oracle Application          (Doc ID 268085.1)
    Example Of Configuring Workflow Java Notification Mailer With Oracle Applications 11.5.x          (Doc ID 249957.1)
    Inbound Processing Is Not Happening While Approving/Rejecting From Emails          (Doc ID 418931.1)
    How To Troubleshoot When Email Notification Responses Are Processed But The Approval Workflow Still          (Doc ID 458665.1)
    Troubleshooting Inbound Email Notifications          (Doc ID 1184846.1)
    A Guide For Troubleshooting Workflow Notification Emails - Inbound and Outbound          (Doc ID 831982.1)
    HTH
    Srini

  • Oracle WorkFlow, help me, please

    Hi,
    I don't familiar with Oracle Workflow , I want to use it, in fact I build up the Oracle WorKFlow using WorkFlow
    Builder but I don't know how to link the workflow process with the aplication.
    Can any one tell me How to execute this work flow
    regards
    Marma Teresa

    Hello Maria,
    There are two parts to your question; First, if you want to see how Workflow works in the application a good idea would be to test for example; a Purchasing Workflow. If you have Purchasing do the following: (I'm not sure how your setup is for the apps. so I'll include all steps).
    1) Create yourself as a user in the Core applications: (R) System Adminstrator - (N) User/
    Define
    2) Give yourself the following responsiblities: a) System Adminstrator
    b) Purchasing
    c) Workflow Adminstrator Web Applications
    3) Create a Purchase order in Purchasing - do not approve the PO
    4) Open a SQL session and run the following script:
    SQL> select segment1, wf_item_type, wf_item_key,po_header_id
    from po_headers_all
    where segment1 = <PO Number>;
    This script will give you the the name of the workflow that got called: wf_item_type and
    the unique instance of the definition that got called: wf_item_key.
    5) Choose the Workflow Adminstrator Web Applications responsibility and choose Find Process
    from the menu
    6) In the Item key field enter the value from the SQL script (wf_item_key) - click on Find
    7) In the next form chose the View Diagram button - this will launch the Workflow Monitor, it
    will allow you view the present state of the definition - the green line indicates
    the 'path'Workflow has taken and the color also indicates that everything is ok.
    8) Go back into Purchasing and Approve the PO
    9) Follow steps 5,6 and 7 - to see the 'continued flow' of the Workflow.
    The second part to your question, if you have created a Workflow you have two options;
    1) To actually 'call' the Workflow you created, you will have to save your definition to the
    database. Chose the Launch Process menu, find your definition. The in the next form, enter
    the data for your attributes...then click ok. This will launch your workflow.
    Unfortunately, I do not know what your definition looks like so may encounter some errors.
    But the Launch Process allows you 'test' the Workflow you created.
    2) If you want to 'include' your definition in the Core Applications that might require a
    customization. In brief, when users are in the application, depending on what they are
    doing, the form will call workflow. If you want the application to call your definition you
    will have to cutomize the call the form makes. But, certain modules in the application
    do allow you to modify Oracle's definition and call your new process - Oracle Purchasing
    is one of those modules.
    I hope this information helps. If you need more infomation let me know: [email protected]
    Thanks,
    Karen

  • How to commit a transaction in Oracle Workflow

    Hi All,
    Oracle says there should not be any commit in Oracle WF .It is the responsbility of the calling program to Call Commit.
    I have the following Requirement:-
    I want to insert a record in one of the custom table, when a record is saved in one of the Oracle Apps Form( for e.g. insert a record in the custome table when user creates PO.)
    What I have done is :-
    1) Added a subscription to one of the seeded events that is raised when user saves a record in the Oracle apps.
    2) Designed a Custom Function, that is called when the above subscription is triggered off.
    3)The above custom function inserts a record in the custom table.
    Q ) where to write a Commit ( as this custom function is called from the WF and WF says, dont put commit in the WF,it should be called by the callling program)
    Can also you explain me , when user presses the Save button on the Oracle standard form--> that calls the Oracle API to create a record in the DB and commit , ---> then the event is raised and trigger offs all the subscriptions where does it commit then?
    Thanks

    Hi,
    The commit should be done by the form, or whatever raises the business event.
    The API fires the event in the same transaction (unless the subscription is deferred), and then the commit is issued. This commits the transaction, and all actions of the event subscription.
    If the subscription is deferred, then the concurrent request which processes the subscription will issue the commit on completion.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Calling Oracle Workflow in Real-Time

    I want to modify the logic in Oracle Apps (both Oracle self-service (pure HTML and JSP) and Oracle Forms applications) to make real-time calls to a mainframe system. The page needs to take different actions depending on the data from the mainframe system.
    I want to avoid actually customizing the Apps and Forms pages if possible due to customization maintenance and support issues. I have been told that I can use Oracle Workflow to modify the actions of the pages without having to resort to customizations, as calls to Workflow are already embedded. Is this true, and if so, how would I go about inserting a call to a mainframe system?
    I am considering mainframe calls using either a proprietary ODBC driver from a third-party vendor, or devising some sort of SOA interface to the mainframe (I know it would require custom development on the mainframe side).
    Thanks!

    I'm pretty sure the sbRIO cards only have 1 FPGA on them.  So when you load the second FPGA code, the first is being overwritten.  You need to make a single FPGA VI that can handle both functions.  If you post your code, we can give more detailed advice.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • 'Approve' button not displaying in the Approve Role screen Inbox - AC 10

    Hello Gurus,
    I have a challenge and I'd be glad to have it fixed.
    I am configuring Role Management in GRC AC 10.0.
    I am in Approve Role phase.
    After clicking on Initiate Approval....It send the request to the Role Owner's work inbox for approval.
    However, when the role owner logs in, only the "Other actions" button shows. The "Approve" button does not show.
    The "other actions" have options for "Hold" and "Request information"
    Please note the following in the MSMP settings.
    I am using the default settings in MSMP
    Process ID - SAP_GRAC_ROLE_APPR
    Maintain Path (Path ID - GRAC_DEFAULT_PATH ) & Stage Config ID - GRAC_DEFAULT_STAGE
    Maintain Route Mapping - GRAC_ROLEAPPR_INITIATOR
    Generate Version - Version generation was successful.
    I have also assigned the following roles to the ROLE OWNER
    SAP_GRAC_BASE
    SAP_GRAC_NWBC
    SAP_GRAC_ROLE_MGMT_DESIGNER
    SAP_GRAC_ROLE_MGMT_ROLE_OWNER
    SAP_GRAC_ROLE_MGMT_USER
    Please help me...what am I doing wrong?
    Thanks

    Hi Colleen,
    Thanks for reply. I have configured the workflow with default path and with one stage (role owner approval). When we create roles, request is being sent for role owner for approval.
    Role owner is able to see the request in workplace inbox. But not able to approve it. We are getting the same kind of error when we raise requests for user access also (you can see the error screen shot for access request and the same kind of error is occurring for role approval also).
    All requests are stuck up at role owner for approval. Quick response is much appreciated.
    Regards
    Sasi

  • Problem  on workflow approval

    Is there something that needs to be done to "enable" the pre-configured workflow in Content Services 10.1.2.0.0
    I'm having the problem that I can submit workflow requests,
    but when I try to approve or reject the request the button 'approve' and 'reject' are not shown in the pop up window.
    The NLS_LANG of the OCS installation is AMERICAN.
    Moreover I installed the patch 4910503 but nothing is changed.
    The customer have to deliver the application very soon..
    Any ideas?
    Thank you

    You may want to check if the node is running (opmnctl status command) and see for any exceptions in the log files under $ORACLE_HOME/content/log. It can also be due to one of the requester/responder user not being provisioned into oracle workflow apart from the NLS issues.

  • Approve Button not functioning in Approval Page NotifDetailsPG.xml

    In NotifDetailsPG, we have the page for approving Batch Approval Requests...
    There are four buttons, Approve, Reject, Reassign and Request Information.
    When we click on the Approve, or reject button, nothing happens, but on the Reassign and Request Information, we are directed to the proper page. Now I need to approve the Journal but i think the Approve and Reject button is not functioning. and we noticed in IE's status bar, that the page was "done with Errors"
    clicking on the done with errors area, we have the error message:
    Line:8
    Char:74
    ErrorL Expected ";"
    Code:0
    URL:http://hostname:port/OA_HTML/OA.jsp?page=oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG?......
    What might be the reasons for this errors?
    null

    you have to search in Metalink using Advanced Search.. key-in "approve button" and select LinuxX86 as the platform..
    If i remembered there is also a result regarding 11.5.10...
    Mine is 11.5.9 related and it just instructed me to upgrade the Workflow mini-pack.. OWF.H.. I think 11.5.10.2 already includes OWF.H so your case might be a different one..

Maybe you are looking for