Workflow 'PORCPT' OA Framework region Notification

Hello Gurus,
We have PO Confirm Receipt Workflow.
For a notification, the wft file has 2 region names in a message body:
'OA.jsp?page=/oracle/apps/icx/por/wf/webui/RcvPOItemsNotfnRN'
'OA.jsp?page=/oracle/apps/icx/por/wf/webui/RcvPOInvoicesRN'
Based on these two regions, the notification gets all the data and displays them on the OA Framework page.
We want to customize the notification by adding another region.
I cannot figure which is the master region that is making use of these 2 or 3 regions.
How do I find out the master region for any workflow/notification.
Thanks,
Vinod

Assuming that you are viewing this notification from "Workflow User" responsibility, Is the function "XXHR_BUS_TRIP_DET_REVIEW_SS" assigned to this responsibility?
If not, try assigning the function to that responsibility and bounce Apache and Workflow mailer and retest.
HTH

Similar Messages

  • Error FND_WF_IN_PROGRESS_FOR_TXN while invoking workflow via OA Framework

    Hello,
    I am invoking a workflow from OA Framework page.
    Basically I am creating an entity and at the end of the entity creation, I am triggering workflow for its approval. It works first time and now I create a new entity and
    try to trigger approval, I get this error.
    Error MESSAGE_NAME is FND_WF_IN_PROGRESS_FOR_TXN and Text is (from FND_NEW_MESSAGES table)
    Workflow with item type (&ITEMTYPE) and item key (&ITEMKEY) is in progress. Abort existing workflow before launching a new process for this transaction.
    For some reason, exception shows item key, of the workflow which got successfully triggered earlier.
    So second time, when I try to trigger workflow Item key used is Item key: XXIFMS_NO_100072
    but exception is for previous key
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_WF_IN_PROGRESS_FOR_TXN. Tokens: ITEMTYPE = XXIFMSSA; ITEMKEY = XXIFMS_NO_100071; at oracle.apps.fnd.framework.webui.OANavigation.initialize(OANavigation.java:233) at oracle.apps.fnd.framework.webui.OANavigation.createProcess
    Here is my code to generate, item key (based on a sequence)
    String serialNumber = "XXIFMS_NO_";
    String wfItemKey = serialNumber + tr.getSequenceValue("POR_REQ_NUMBER_S").toString();Error seems to suggest that within one transaction only one workflow can be launched.
    Is there a way to explicitly start a new transaction using AM?
    regards, Yora

    The error comes from the initialize method in the OANavigation class. You can either extend the class and override any needed methods, or add code to the AM to set up the Workflow context so that you can use the API w/o the Oracle Applications wrapper. It looks like the Wrapper was made available mainly for using WF for the pages in OA framework.
    Instead of creating a new class, I added the code to my application module. Afterwards I can submit multiple workflows. An overview of what I did is:
    1. Add required imports to AMimpl
    2. Add two methods to AMimpl: setUpWF, releaseWFJdbcConnection, submitToWorkflow
    3. Call the methods to submit to workflow in the apply method before calling the commit method.
    4. Call the apply method as normal from the controller.
    AM IMPL --->
    import java.text.SimpleDateFormat;
    import java.math.BigDecimal;
    import oracle.apps.fnd.framework.server.OADBTransactionImpl;
    import oracle.apps.fnd.wf.WFContext;
    import oracle.apps.fnd.wf.engine.WFEngineAPI;
    import oracle.apps.fnd.wf.WFDB;
    import oracle.apps.fnd.common.AppsContext;
    import java.sql.Connection;
    public void apply()
    OADBTransactionImpl txn = null;
    //Now we need to save the new attrs to the database.
    try
    txn = ((OADBTransactionImpl)this.getTransaction());
    EntryVOImpl vo = getEntryVO1();
    this.setUpWF(txn);
    Row[] rows = vo.getAllRowsInRange();
    for (int i = 0; i < rows.length; i++)
    String requestID = rows.getAttribute("RecordId").toString();
    if (requestID.equals(null))
    throw new OAException ("No record ID available for line " + String.valueOf(i) + ". Skipping...");
    }//if
    if (rows[i].getAttribute("LineStatus").toString().equals("In Process"))
    System.out.println("Record for line " + String.valueOf(i) + " is in process. Skipping...");
    }//if
    else
    String[] workflowValues = submitToWorkflow(requestID);
    //Now Assign he workflow values to the attributes.
    rows[i].setAttribute("WfItemType", workflowValues[0]);
    rows[i].setAttribute("WfItemKey", workflowValues[1]);
    }//else
    }//for
    }//try
    catch (Exception e)
    throw new OAException("Error submitting to New Demand Workflow: "+e.getMessage());
    finally
    releaseWFJdbcConnection(txn);
    try
    this.getTransaction().commit();
    }//try
    catch (Exception e)
    System.out.println("Error saving demand request data; " + e.getMessage());
    e.printStackTrace();
    throw new OAException("Error saving demand request data; " + e.getMessage());
    }//catch
    }//apply
    private String[] submitToWorkflow(String recordID)
    String [] returnValues = {"", ""};
    try
    String wfItemType = this.getWFItemType();
    String wfProcess = this.getWFProcess();
    java.util.Date currentDate = new java.util.Date();
    SimpleDateFormat formatter = new SimpleDateFormat("MMddyyyyHHmmss");
    String wfItemKey = recordID + ":" + formatter.format(currentDate); /*Concat the header and the date string from current record*/
    OADBTransactionImpl txn = ((OADBTransactionImpl)this.getTransaction());
    WFContext ctx = null;
    ctx = (WFContext)txn.findObject("wfContext");
    if (ctx == null)
    throw new OAException ("Transaction Context is Null!!");
    System.out.println("\n\n\tAttempting to Submit to workflow: " + wfItemKey + "...");
    BigDecimal recordIDBD = new BigDecimal(recordID);
    //Call Workflow
    WFEngineAPI.createProcess((WFContext)txn.findObject("wfContext"), wfItemType, wfItemKey, wfProcess );
    System.out.println("1");
    WFEngineAPI.setItemOwner((WFContext)txn.findObject("wfContext"), wfItemType, wfItemKey, txn.getUserName());
    //System.out.println("2");
    WFEngineAPI.setItemAttrNumber((WFContext)txn.findObject("wfContext"), wfItemType, wfItemKey, "XXAAI_RECORD_ID", recordIDBD);
    System.out.println("3");
    WFEngineAPI.startProcess((WFContext)txn.findObject("wfContext"), wfItemType, wfItemKey);
    System.out.println("4");
    returnValues[0] = wfItemType;
    returnValues[1] = wfItemKey;
    return returnValues;
    }//try
    catch (OAException oe)
    System.out.println("OA Framework Error launching workflow: " + oe.getMessage());
    throw oe;
    }//catch
    catch (Exception e)
    System.out.println("Error launching workflow: " + e.getMessage());
    e.printStackTrace();
    throw new OAException (e.getMessage());
    }//submitToWorkflow
    private void releaseWFJdbcConnection(OADBTransactionImpl oadbtransactionimpl)
    AppsContext appscontext = oadbtransactionimpl.getAppsContext();
    WFContext wfcontext = (WFContext)oadbtransactionimpl.findObject("wfContext");
    Connection connection = wfcontext.getJDBCConnection();
    if(connection != null)
    appscontext.releaseExtraJDBCConnection(connection);
    wfcontext.setJDBCConnection(null);
    }//releaseWFJdbcConnection
    private void setUpWF (OADBTransactionImpl txn)
    try
    WFDB wfdb = new WFDB();
    AppsContext appsContext = txn.getAppsContext();
    String enc = appsContext.getCurrLangCode();
    if(enc == null)
    enc = "US";
    }//if
    String s1 = enc.substring(enc.indexOf('.') + 1);
    wfSessionID = appsContext.getSessionId();
    Connection connection = appsContext.getExtraJDBCConnection(wfdb, appsContext.getSessionId());
    wfdb.setConnection(connection);
    WFContext wfcontext = new WFContext(wfdb, s1);
    txn.registerObject("wfContext", wfcontext);
    catch(Exception exception)
    this.releaseWFJdbcConnection(txn);
    throw new OAException("Error getting workflow context: " + exception.getMessage());
    }//catch
    }//setUpWF
    Oracle is removing some text. For instance areas with [i] are being removed. If reposting does not fix the issue, then note in the example code you need to recompile and you may need to add the array indexes manually.
    ***** NOte Oracle's Editor is remvoing text from the code I posted. I don't have time to troubleshoot this. The ARRAY Indicators are being removed. Make sure you compile and manually put back the ARRAY INDEXES as needed in the sample code.*****************

  • Human Workflow is not sending Email notifications to AD users

    Hi,
    I'm trying to send email notification to the assigness from workflow. If I use the weblogic users with email attributes, Its sending mails. But once I switch to AD and use the AD users it's not. I have made the AD provider to be the first in the list and also able to login to the worklist app using the same user. Problem is that it's not sending mails.
    Can anyone please help soon.
    Regards,
    Thejas

    Can you explain what are AD users and how they are created(APIs)?
    Please check that the user exists in wf_local_roles table.
    select name,notification_preference, email_address from wf_local_roles where name = <AD Username>
    In order to send email notification, the user/role should have the proper email addresses and notification preference set to MAIL* i.e MAILHTMl, MAILHTM2, MAILATTH, MAILTEXT..etc

  • PR Workflow delay in sending a notification to SAP inbox of approver

    Hi All,
    We are experiencing a problem in PROD regarding the time delay of workflow in sending the PR to the approver in his SAP inbox.
    The current set-up is expected to be operating in runtime. However, we experience delays in the notification.
    In runtime graphics, the workflow stays in the background activity. The workflow is expected to just swiftly run the background activity and move to the next activity.
    May I know the steps on solving this error?
    Thanks in advance.
    Regards,
    Reymar

    Hi
    i think background job sheduled timelimit, how much time is taking time to get workitem into ur inbox/ check with basis gut how theysheduled background jo running or check SOST transaction transmission r processing or not.

  • Step by Step workflow configuration required for PM Notification

    Hi All,
    as per our requirement we need to trigger workflow when PM Notification Status will be change (Event will trigger for approval when sombody manually change the workflow status)
    Kindly guide me step by step for configuration of that

    not answered closing thread

  • Workflow in MDM  with email notification

    Hi All,
                I am using the workflow for the first time,and doing a scenario where workflow should be automatic and ,
                 1. as one user finishes the processing it should go to the next user automaticallyan an so on.
                  2. As on user add new records and field values a email notification should also go to the next user available as the processing of first user finishes.
    Please provide me someo helpfull links or suggetions ASAP,all the efforts will be appriciated.
    Thanks & Regards

    Hi,
    Process Flow Overview
    1.     Launch MDM Data Manager
    2.     Create the Validation.
    3.     Select the workflow Table
    4.     Design the workflow in Microsoft Visio Professional.
    5.     Run the work Flow in the Data Manager.
    6.    Verify Result
    Pre-Requisite:   Before You Launch the MDM Data Manager, Check whether the Repository is up and running      (Status Must be Loaded Running in MDM console) and Microsoft Visio Professional has been installed and the Repository has been configured with the Mail Server.
    Example : Start &#61664; Process&#61664;Validate&#61664;Approve &#61664;Notify &#61664; Stop
    Notify button
    In the Step Properties pane, click on the To field and select a User from the Available Users list as u Required.
    In the Step Properties pane, click on the Subject field and type in “      ”
    In the Step Properties pane, click on the E-Mail body field.
    In the E-Mail body field, click on the    button and type the Message
    If u had any doubts regarding Workflow Please let me know i will clarify.
    Regards
    Hari

  • SRM Workflow (Business Rule Framework)

    Hello!
    I hope I will find valuable tips and information.
    I was researching at the moment about the SAP SRM BRF workflow. In our company, SRM is 5.0. With version 7.0 (or 7.0.1), the existing workflow concept has been revised to be strong. Now I try to work out differences. (Pro / Cons, functions, etc.)
    Does anyone here have more information, or any sources?
    Thank you in advance!

    Hi,
    It is called "Process-Controlled Workflow". SRM 7.0 support 2 workflow frameworks.
    Application-Controlled Workflow: like SRM 5.0. Development in Workflow Graphical Editor or N-Step BADI development.
    Process-Controlled Workflow: Process Level definition in customize table and Agent BADI.
    Main business value is TCO. Application consultant or ABAP consultant can manage Process-Controlled Workflow implementation without workflow consultant.
    If SRM 5.0 functionality is fine and no often approval step change, upgrade customers can use Application-Controlled Workflow without new implementation.
    New functionality will be delivered in Process-Controlled Workflow only.
    Regards,
    Masa

  • Oracle workflow .Steps in processing a notification

    Hi,
    Let say an EBS user submitted his timesheets through Oracle workflow.
    Can some explains / provide links how this notification gets processes.
    And importance of WF out and IN queues / deferred agent listeners / SMTP and IMAP,
    I have read the bellow links but I did not much information.
    http://appsdbalife.wordpress.com/2009/09/02/notification-mailer-troubleshooting-part-i/
    --Thanks In Advance
    Vijay
    Edited by: Vijay.Cherukuri on Aug 15, 2012 9:44 PM

    I do not think you will find this documented in details. However, you may refer to:
    Diagram of Relationship between Core Workflow Tables [ID 444446.1]
    Oracle Time and Labor (OTL) Implementation and User Guide, Release 12 [ID 1070930.1]
    Oracle Time & Labor Implementation and User Guide, Release 11i [ID 207333.1]
    Oracle Time and Labor Retrievals Troubleshooting Guide [ID 749174.1]
    Time and Labor
    http://docs.oracle.com/cd/B53825_08/current/html/doclist.html#Time%20and%20Labor_p
    Thanks,
    Hussein

  • Workflow Send Mail when Quality Notification is Complete

    Hi All,
    I need help related to QN Workflow, which is copy of standard workflow WS24500047.
    In this case , when all tasks are marked completed and get stated TSCO in QM02, against individual tasks.
    But, on completion of tasks, no mails is being sent to the coordinator, presently.
    A mail should be sent to the coordinator, in case all tasks are released and marked as completed.
    Please suggest how do I implement the above functionality.
    Thanks in advance.

    Hi all,
    Thanks for all your answers
    We have resolved the issue.
    Problem was with the configuration settings
    We had to do config settings in 3 places:
    1) SPRO/ Quality Management / Quality Notifications / Notification Processing / Activate Workflow template / Click on Activate event linking/  Place cursor on task group / click Object button / select tab workflow template and add the custom workflow / Go back and then open the workflow from the list and activate the events
    2) Add the events in transaction SWE2 for the custom business object.
    3) Add the events in the transaction BSVW for the custom busines object.
    Thanks and Regards,
    Mozila

  • Workflow - For Deadline send Extended Notification

    Hi,
    Its a particular requirement that in case the deadline is missed a mail need to be send to the approvers Outlook e-mail id. But this e-mail should be sent using extended notification.
    First help me how to use extended notification and there is also some configuration needed for the same, so in case u know that thing or have a document kindly send.
    Thanks,
    Prashant Singhal.

    This is already discussed and answered in other threads.
    Repetitive/Recursive Deadline Monitoring
    sap extended notification for work items with URL

  • Workflow Mailer stops picking up notifications after IP address changes

    We changed the IP address of our Domain Controllers this afternoon. Soon after we did this, I noticed that notifications in the WF_NOTIFICATIONS table were not being processed.
    FND_SVC_COMPONENTS showed that the mailer was running, and I was able to telnet into the Exchange server (our mail server) from the PRODuction/admin/concurrent processing tier.
    OAM showed the mailer was running and I was able to stop and start the mailer from the GUI from the OAM.
    Does anyone have any ideas as to whether a Application tier bounce would help with us with this?
    Tks

    Yes - there were errors in the log file (as shown below)
    [Mar 2, 2010 2:16:03 PM CST]:1267560963744:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:mkewis01.drs-pct.com:10.40.9.61:-1:-1:UNEXPECTED:[SVC-GSM-WFMLRSVC-17842-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProcessor.send(Message)]:Problem occured whee n sending to {[["Sentieri, Gerald L" <[email protected]>]]} -> javax.mail.MessagingException: 451 Sender domain must resolve
    There were several of these - one for each notification that was not being processed from the WF_NOTIFICATION table - with the same error message.
    While we were experiencing this problem, I bounced the mailer. This had no effect.
    Not sure if the IP's of the old domain controllers are cached anywhere.....and whether a biounce of just the APPS stack will force the expiry of the lease of the IP address of the old domain controllers.

  • Repository Framework - customize notification

    Dear Experts,
    does anybody know how to customize a notification. If an resource in the repository was changed, send a customized eMail or SMS to the registered users.
    First i tried out to implement a new repository service to create a new subscription. But I think thats false. Can anybody help me???
    Thx a lot!
    regs,
    timo

    Hi,
    You need to write your own notification class for customization of notification. Some thing like this:
    public class SendingMail {
    public void postMail(String recipient, String subject, String message){
    String mailServer =
                   ResourceBundles.getBundle(SendingMail.class.getName()).getString(
                        "sendmail.mail.server.sap");
    props.put("mail.smtp.host", mailServer); // mail server
    Session session = Session.getDefaultInstance(props, null);
              session.setDebug(debug);
              // create a message
              Message msg = new MimeMessage(session);
              //MimeMessage msg = new MimeMessage(session);
              // set the from and to address
              String sender =
                   ResourceBundles.getBundle(SendingMail.class.getName()).getString(
                        "sendmail.sender");
              InternetAddress addressFrom = new InternetAddress(sender);
              msg.setFrom(addressFrom);
              Address addressTo = null;
              IUser user = this.getUser(recipient);
              if (user != null)
                   addressTo = new InternetAddress(user.getEmail());
              else
                   addressTo = new InternetAddress(sender);
              msg.setRecipient(Message.RecipientType.TO, addressTo);
              // Setting the Subject and Content Type
              msg.setSubject(subject);
              msg.setContent(message, "text/html");
    private com.sap.security.api.IUser getUser(String userName) {
              IUser user = null;
              try {
                   user = UMFactory.getUserFactory().getUserByLogonID(userName);
              } catch (UMException e) {
                   e.getMessage();
              return user;
    and you need to call this class to send notification. Hope this help you.
    Satish

  • Personalizations made in the OApage are not effected in the email

    I added fields in the page through personalization and i can see those fields in the page, but when i am mailing the same page with email notification , i am not able to see the changes in the email.
    Please help me in this issue.
    Thanks
    Raja Manvi

    I am not quite sure which page you are talking about here and how you are e-mailing the page??
    Oracle Workflow provides Notification Details Page through Worklist. The content that you see in the notification details page is sent as an e-mail notification by the Workflow Notification Mailer.
    11.5.9 - The content in Notification Details page is generated by PLSQL code and OA Fwk just displays whatever it gets from the PLSQL layer. Any changes you make to the content, you would make to the PLSQL code that generates the content.
    11.5.10 - Workflow supports embedding framework regions in Notification Details page using Documen Type message attribute as JSP:/OA_HTML/OA.jsp?..... If you make changes to the OA Fwk region that you have embedded it is reflected when you view the notification from Worklist as well as all new e-mail notifications sent after the change.
    Now, which release are you on? and which page did you personalize? and how is the page being e-mailed?
    Thanks
    Vijay

  • OAF document link in workflow notifications

    Hi
    I am trying to attach an OAF page I developed into a custom workflow's notification. I defined a new attribute with document type and put JSP:/OA_HTML/OA.jsp?OAFunc=XXRM_ONAY_TALEP_GUNCELLEME as the value where XXRM_ONAY_TALEP_GUNCELLEME is my sswa jsp function's name.
    Then I put this new attribute into message body, with the option "Attach Content" selected. However when the notification arrives to the recipient, instead of an attachment link or the OAF page itself, there is only a text :
    "Attribute BOLMUDUYDOC refers to Framework Region JSP:/OA_HTML/OA.jsp?OAFunc=XXRM_ONAY_TALEP_GUNCELLEME"
    As this is an urgent matter, any help to resolve the issue will be greatly appreciated.
    Thanks
    Özgür

    I managed to get this link working by setting up a message attribute of type URL.
    I selected the 'Attach Content' flag, and set the value to JSP:/OA_HTML/OA.jsp?page=/{path to xml file from $JAVA_TOP}
    Cheers,
    Tim

  • Workflow notification with link and Form open functionality issue

    Hi All,
    In GLBATCH workflow, Request Approval from Approver message we need a new link 'View Journal' avaliable. Once user click on it GLXJEENT form should be opened with GLXIQJRN function (with query only mode, that mean no New Jouranl or batch option)
    We could able to do this. Created a attribute of form type and assigned below vlaues with defulat as constant
    GLXIQJRN:AUTOQUERY_LEVEL=BATCH AUTOQUERY_COORDINATION=INITIAL AUTOQUERY_CRITERIA=&BATCH_ID
    The problem here is, it is not auto populating the batch name in that query form
    I tried lot of ways, but no use.
    Can anyone please help me in this. We need auto population of batch name in the Batch Name field.

    Try by defining the message attribute holding the link to the framework region. Then, once the notification has been created (sent) call WF_NOTIFICATIONS.SetAttrText to set the value of the region in that attribute value.
    Regards,
    Alejandro

Maybe you are looking for