Workflow notification called by databse trigger

Hi,
I have a question about Oracle Workflow notification mailer.
Can we use an Oracle database trigger or Oracle Form's trigger
to run or execute oracle workflow to send notification mailer?
For example, if I execute a DML (insert or update) using SQL*Plus to modify a table.
Can the database trigger act as a caller to send mail through workflow API?
Thanks.

ok I have simmilar problem
Created workflow.
Want to send notification from forms.
have procedure in the database
PROCEDURE set_wf_t IS
BEGIN
WF_ENGINE.Threshold:= -1;
END;
code in the form looks like this.
Declare
ItemType varchar2(30) := 'MY_WF';
ItemKey varchar2(80) := 'ID-'||to_char(SysDate, 'MM/DD/YYYY HH24:MI:SS');
BEGIN
If values='T' then
--send email
SET_WF_T; --Setting value WF_ENGINE.Threshold:= -1
wf_engine.CreateProcess( ItemType => ItemType,
ItemKey => ItemKey);
wf_engine.SetItemAttrText ( itemtype => itemtype,
itemkey => itemkey,
aname => 'NUMBER',
avalue =>:BLOCK.NUMBER);
wf_engine.SetItemAttrText ( itemtype => itemtype,
itemkey => itemkey,
aname => 'MESSAGE_SUB',
avalue =>'Message Subject');
wf_engine.SetItemAttrText ( itemtype => itemtype,
itemkey => itemkey,
aname => 'MESSAGE_BODY',
avalue =>'Message text here');
wf_engine.setitemattrtext (itemtype => itemtype,
itemkey => itemkey,
aname => 'OWNER',
avalue => v_owner);
     wf_engine.StartProcess( itemtype => itemtype,
itemkey => itemkey );
          END IF;     
END;
The problem is that I don't receive email.
And I don't see notification in the status monitor.
I receive email when i run process manually from DEVELOPER STUDIO
What I am doing wrong?
Thank you

Similar Messages

  • No data found for region error on Workflow notification page

    Hi !
    For workflow, I have created a Non Form Function in Oracle Applications and linked the region to display in the notification. This region's type is StackLayout.
    I created an attribute of type Document and assigned it the value in the form
    JSP:/OA_HTML/OA.jsp?OAFunc=WF_FUNC
    then I added this attribute in the notification message attribute with the Source as Send and Frame Traget as Full Window. Now when the workflow starts, the region does not populate and error shows that there is no data found for this region.
    Am I doing something wrong? Any ideas?
    Thanks.

    Hi,
    We have a unique problem.....for timecard approval notification the HXC_TIMECARD form function is calling embedded Timecard region in the workflow notification.....in the HTML call the AprvNtfRN is called as shown below.
    OA.jsp?page=/oracle/apps/hxc/selfservice/approval/webui/AprvNtfRN&akRegionApplicationId=809
    Now the issue is that the email displays uneven format i..e timecard details like project and task name are vertical instead of horizontal.
    Is there a way to code HTML in AprvNtfRN so that the format is obtained as desired?

  • Workflow Notification Issue r12

    Hi
    I have two issues with Workflow notification in r12.
    1. Users get notification with a file attached called notification.html. This is not required. How can I stop workflow attaching this file when sending emails.
    2. How can I unanimously change notification preferences for all users?
    Thanks,

    what is the notification preference value of the recipient.
    If you don't want the 'notification.html' attachment in email, then set the user notification preference value as 'HTML mail' (MAILHTM2) .
    From UI
    Follow the naviagation
    user login --> Preferences tab--->Email Style -> 'HTML mail'
    In the wf_local_roles it should appear as 'MAILHTM2'.
    2. For FND user you can call the below API
    fnd_preference.put(username,'WF','MAILTYPE','MAILHTML');
    For other users you can directly update wf_local_roles with the required notification preference value

  • 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.

  • Error with hyperlink to open a form in Workflow Notification

    Hi All,
      I am trying to create a hyperlink to open a form in Workflow Notification. I want to open "Prepare Mass Additions" form from my workflow. I am in R12 (12.1.3) and there is no parameters defined for this function.
      So i am trying the method given here:
      http://oracleappsnotes.wordpress.com/2011/04/15/accessing-oracle-forms-from-workflow/
      Below is a summary of steps from this blog:
    Register a new custom form function with a parameter CREATE_BATCH_ID.  Function name is XXFAXMADDS. Its just the seeded FAXMADDS form function, just with the addition of parameter.
    Create an attribute of type ‘Form’ which stores the name of the form function and the parameter with which we want to call it. The default value of the attribute is XXFAXMADDS:CREATE_BATCH_ID=&BATCH_ID
    In a workflow process include a notification message.
    Associate the attribute with the notification message
    Personalize the new form function, to add actions to assign the value of parameter to the form field, then goto the Find Button, and click it.
        When i click on the link in notification, I am getting the below errors:
        FRM-47023: No Such parameter named G_QUERY_FIND exists inform FAXMADDS
        FRM-40105: Unable to resolve reference to item PARAMETER:G_QUERY_FIND
        FRM-47023: No such parameter named CREATE_BATCH_ID exists in form FAXMADDS.
        Why is this error? Why it is referring to G_QUERY_FIND which i have not at all used?
    Thanks
    Manu
    Message was edited by: manu.mur

    Hi Hussein,
    Clearing cache or bouncing application did not help. And now i am noticing that the value of this attribute does not change according to the changes i make in workflow builder.
    Also, i tried by updating the workflow attribute from Workflow Admin, retried the notification and tried the link again. No help.
    I tried updating attribute to just the standard form function name, still same errors!

  • 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

  • Multiple attachments in Workflow Notification

    Hi All,
    We are trying to attach multiple(Two) files to the workflow notification. We are able to get the two attachments. But the problem is in the notification from front end both the attachments are opening the same file, where as the attachments in the outlook are showing different contents and the file name is same for both the attachments.
    Please can anyone help us in this. This is very urgent requirment.
    Thanks,
    Varun

    Hi Jubish/Venkat
    1. I iterated this fucntion moudule to store the multiple attachments to the workflow
       SAP_WAPI_ATTACHMENT_ADD
    2. Call this FM to get the attachemnts form the workflow (pass workitem Item id which is used for storing the attchments).  SAP_WAPI_GET_ATTACHMENTS
    from above you will get objkey for each attachment as output in table.
    3. Pass the  objkey to this FM to get the contents
    SO_DOCUMENT_READ_API1'. this will retrun the content of the attachment either in object_content,   contents_hex.
    4. Pass the Obtained content to SCMS_BINARY_TO_XSTRING to get the disired format.
    Best Regards,
    Chandran S

  • Workflow Notification &MAILTO

    Hello,
    I have a problem with WorkFlow Notification.
    When a send a workflow test notification. I reveive the mail, in my inbox. I use Webaccess. The notification server works. But in the body of the mail, i don't have the Acknowledge button, I have only &MAILTO....
    I have three tiers for OCS 10.1.2.3 and the OID is separate of the Store database. I have run the Worflow Assistant configuration on my middeltier, and I have change the password on OID for the user owf_mgr to be the seem that in the store database.
    I have a single box installation and is work proprely...
    Can I help me ?
    Message was edited by:
    user473198
    The middle tier has been Migrate to a v2 installe (9i) to a 10.1.2.0 ... and the schema of OWF_MGR cannot be removed... it's the problem ?
    Message was edited by:
    user473198
    I have make some tests. When I receive the Mail. And I click on request more information. I can view the page and the approve button. But when i Click on Approve, I have a 404 error.
    With the File join to the message (Notification detail.html) when I click and I open the page, a have to enter the OWF_MGR identification. And one the workflow page I enter the user identification. It's Ok. I click on approve and the requester have a mail to informe that the request is approved

    You must run :
    connect to databse with sqlplus
    SQL> sho user
    USER is "OWF_MGR"
    SQL>@wfmlrb.pls

  • Push workflow notification in gateway

    Hi All,
    I want to push workflow notification to external server via Gateway system ,
    I have followed some links for push notifications made easy .
    Here  i need to know , what is the exact report or badi i need to implement for push notifications ?
    I have followed the below URL's :
    Pushing Notifications Made Easy!!! : Push a Notification
    In the above URL , there is a report which will push notification and it's need to be implemented via badi
    IF_EX_ADDRESS_UPDATE~ADDRESS3_SAVED.
    is the below user exit helpful :
    /IWWRK/ES_WF_ITEM_SEL_OB
    Pl let me know any badi exists for workflow notifications .

    Hi Lokeshwar,
    The ADDRESS_UPDATE BAdI used in the Notification blog is just an example where IF_EX_ADDRESS_UPDATE~ADDRESS3_SAVED method was implemented. This is the trigger mechanism used in the blog. Its totally up to the application developer to use a specific notification trigger mechanism as mentioned in the blog. In the blog, the user is subscribed to the entityset - "UserCollection" and change type  - "created" which means that the user shall be notified whenever a new user is created.
    Now based on your use case and subscription created, you have to choose how to trigger an event for notifying the user. I am sorry but I do not know about user exit /IWWRK/ES_WF_ITEM_SEL_OB.
    Hope this helps you.
    Best regards,
    Aakash

  • Workflow notification is not tiggered for IDoc of message type 'WPUWBW'

    Hi All,
            I would like to know the setting up of workflow notification for IDoc message type 'WPUWBW' (idoc of different message type is getting notified). Please provide pointers and also the steps for the above issue.
    Regards,
    PSS

    Hi Ferry,
    System checks for the IDOC version and then calls the EXIT if the versions are different .Following is the code snippet that ensures the above thing in include LBD11F0T :
      Change IDOC version if target <> current version.
      IF  F_EXCEPTION-MSGTY IS INITIAL
        AND (    F_IDOC_CONTROL-IDOCTP <> TARGET_IDOCTP
              OR F_IDOC_CONTROL-CIMTYP <> TARGET_CIMTYP ).
        PERFORM CHANGE_IDOC_VERSION TABLES   T_IDOC_DATA
                                    USING    TARGET_IDOCTP
                                             TARGET_CIMTYP
                                    CHANGING F_IDOC_CONTROL
                                             CHANGED_FLAG
                                             F_EXCEPTION.
      ENDIF.                               "End of  if subrc = 0
    Have you tested it ? Pls suggest if I am wrong somewhere.
    Thanks and Regards
    Gurpreet Singh

  • Push workflow notification to HTTP listener

    Hiie All,
    I;m trying to push workflow notification from gateway to HTTP listener by following the below document :
    Pushing Notifications Made Easy!!! : Push a Notification
    I have some queries in the above document :
    1. what is p_no ?
    2. In my scenario , when ever a new notification is created in gateway , it should be pushed to hhtp destination ...
    what are the steps that i need to follow to push notifications ?
    Waiting for helpful suggestions
    Regards ,
    Lokeswar.

    Hi Lokeshwar,
    The ADDRESS_UPDATE BAdI used in the Notification blog is just an example where IF_EX_ADDRESS_UPDATE~ADDRESS3_SAVED method was implemented. This is the trigger mechanism used in the blog. Its totally up to the application developer to use a specific notification trigger mechanism as mentioned in the blog. In the blog, the user is subscribed to the entityset - "UserCollection" and change type  - "created" which means that the user shall be notified whenever a new user is created.
    Now based on your use case and subscription created, you have to choose how to trigger an event for notifying the user. I am sorry but I do not know about user exit /IWWRK/ES_WF_ITEM_SEL_OB.
    Hope this helps you.
    Best regards,
    Aakash

  • After clone workflow notifications  were not reciving users

    Hi,
    Workflow notifications were not reciiving by users after successfully clonned the system.
    But O/s level we able to send the requests to users using mailx. cocnurrent program out & log files also recing users.
    all workflow components are upa nd running. Please let me know any updates we need to change at databse level.
    Environemnt : 12.1.1 running on 2 node environment. where DB on one server & apps on one server.
    Thanks,
    DBA
    Edited by: user606944 on Mar 3, 2010 7:22 AM

    Hi,
    We followed the steps of metalink document. even though same issue persisting.
    Please find below content of log
    at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: org.xml.sax.SAXException: Replyto must be a valid email address
    [Mar 3, 2010 6:41:54 PM AST]:1267630914824:-1:-1:kwa1hcm3:10.200.33.75:-1:-1:1:20420:SYSADMIN(0):-1:Thread[outboundThreadGroup1,5,outboundThreadGroup]:10.200.33.75:79542:1267623021142:27:UNEXPECTED:[SVC-GSM-WFMLRSVC-76884-10006 : oracle.apps.fnd.wf.mailer.NotificationFormatter.getFormattedMessages()]:Problem parsing XML -> org.xml.sax.SAXException: Replyto must be a valid email address
    [Mar 3, 2010 6:41:54 PM AST]:1267630914824:-1:-1:kwa1hcm3:10.200.33.75:-1:-1:1:20420:SYSADMIN(0):-1:Thread[outboundThreadGroup1,5,outboundThreadGroup]:10.200.33.75:79542:1267623021142:27:ERROR:[SVC-GSM-WFMLRSVC-76884-10006 : oracle.apps.fnd.wf.mailer.SMTPMessageHandler.prepareMessages(String)]:FormatterException -> oracle.apps.fnd.wf.mailer.FormatterException: Problem parsing XML-> org.xml.sax.SAXException: Replyto must be a valid email address
         at oracle.apps.fnd.wf.mailer.NotificationFormatter.handleHeaderEndTag(NotificationFormatter.java:2191)
         at oracle.apps.fnd.wf.mailer.NotificationFormatter.endElement(NotificationFormatter.java:538)
         at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:320)
         at oracle.apps.fnd.wf.mailer.NotificationFormatter.getFormattedMessages(NotificationFormatter.java:354)
         at oracle.apps.fnd.wf.mailer.SMTPMessageHandler.prepareMessages(SMTPMessageHandler.java:77)
         at oracle.apps.fnd.wf.mailer.SMTPOutboundProcessor.read(SMTPOutboundProcessor.java:732)
         at oracle.apps.fnd.cp.gsc.SvcComponentProcessor.process(SvcComponentProcessor.java:604)
         at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: org.xml.sax.SAXException: Replyto must be a valid email address
    [Mar 3, 2010 6:41:54 PM AST]:1267630914842:-1:-1:kwa1hcm3:10.200.33.75:-1:-1:1:20420:SYSADMIN(0):-1:Thread[outboundThreadGroup1,5,outboundThreadGroup]:10.200.33.75:79542:1267623021142:27:UNEXPECTED:[SVC-GSM-WFMLRSVC-76884-10006 : oracle.apps.fnd.wf.mailer.NotificationFormatter.getFormattedMessages()]:Problem parsing XML -> org.xml.sax.SAXException: Replyto must be a valid email address
    [Mar 3, 2010 6:41:54 PM AST]:1267630914842:-1:-1:kwa1hcm3:10.200.33.75:-1:-1:1:20420:SYSADMIN(0):-1:Thread[outboundThreadGroup1,5,outboundThreadGroup]:10.200.33.75:79542:1267623021142:27:ERROR:[SVC-GSM-WFMLRSVC-76884-10006 : oracle.apps.fnd.wf.mailer.SMTPMessageHandler.prepareMessages(String)]:FormatterException -> oracle.apps.fnd.wf.mailer.FormatterException: Problem parsing XML-> org.xml.sax.SAXException: Replyto must be a valid email address
         at oracle.apps.fnd.wf.mailer.NotificationFormatter.handleHeaderEndTag(NotificationFormatter.java:2191)
         at oracle.apps.fnd.wf.mailer.NotificationFormatter.endElement(NotificationFormatter.java:538)
         at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:320)
         at oracle.apps.fnd.wf.mailer.NotificationFormatter.getFormattedMessages(NotificationFormatter.java:354)
         at oracle.apps.fnd.wf.mailer.SMTPMessageHandler.prepareMessages(SMTPMessageHandler.java:77)
         at oracle.apps.fnd.wf.mailer.SMTPOutboundProcessor.read(SMTPOutboundProcessor.java:732)
         at oracle.apps.fnd.cp.gsc.SvcComponentProcessor.process(SvcComponentProcessor.java:604)
         at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283)
         at java.lang.Thread.run(Thread.java:619)
    any idea?

  • Sending Workflow notification with OAF page link through PL/SQL

    Hi Workflow Experts
    I have a requirement where I want to send a FYI notification to a user.
    And I have to add a link to my OAF screen in this workflow notification.
    Please let me know if i have to create a workflow for this or can this be done by calling some workflow api.
    Thanks in advance
    Navneet
    Edited by: Navneet01 on Feb 20, 2013 10:59 PM

    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

  • OLM Workflow Notifications

    We have a requirement to disable some of the Learner Enrollment Workflow Notifications. Has anyone else done this before?
    It’s is looking to me that these are initiated out an API call, from an OA Framework object. That means making custom copies of the seeded code train to call our modified Workflow, then an Extension to call the custom code...right? Looking for someone to disabuse me of that, and point out a sweet and simple solution….

    Thanks for taking the time to talk. I'm sorry to be such a pain in the tuckus. Those are the mods i've done, and added my xx_custom workflow process name to a copy of the AOL Function, which was then added to a copy of the Responsibility menu. My modified workflow is still not being triggered. The 'Enroll' button is calling the OTA_DELEGATE_BOOKING_API api which in turn calls ota_initialization_wf.init_assessment_wf, which spawns the seeded Workflow. I'm just looking at that and going 'really?!?'.
    The seeded AOL function is also set as the Page Securing function on the seeded OA Framework pages that comprise this train. not sure if that plays a part as well or not.
    it's starting to look like i'm not on crack then?

  • Filter Workflow Notifications that are Emailed to Users

    In Oracle E-Business Suite Release 12, is it possible to specify that only certain types of workflow messages should be sent out via email?
    I have a client that would like to only email workflow notifications that require an action and to leave all of the FYI notifications to display in the worklist but not be sent via email.
    Thank you for your help!
    Anne

    Hi,
    You can define a new mailer for each item type and / or each message that you want to be emailed. If there are lots that you want to be emailed, then this isn't really an option, though, since you need one mailer per item type / message.
    If you want to suppress the notifications which require a response, I would write a trigger on the WF_NOTIFICATIONS table on insert so that if the notification is one that you want to suppress, you set the MAIL_STATUS value to SENT. The mailer will then think that the notification has been emailed and will not try to send it again.
    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://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

Maybe you are looking for

  • Upgrading to iTunes 9 on Windows Vista...PROBLEMS!

    I recently upgraded to iTunes 9 on my computer, and it is Windows Vista. The computer and iTunes was perfectly fine before, but now iTunes doesn't come up when I open it and my iPod does not show up under "My Computer". I went to apple.com and reinst

  • Apple "fixed" my ipod, but it's broken again!

    I had my iPod shipped back to the company to repair it, and they did ship it back "fixed." Under the warranty, if you'e experiencing problems with your ipod within 6 months, then you can have them send you a box for packaging, and shipped back at no

  • Won't complete installation

    Fire fox 3.6.8 32-bit operating system Vista Flash player 10 I have downloaded it and it shows up in the Control panel/Programme. There does not seem to be next to it on the right side any size of the download no MB size. It hasn't appeared on my des

  • Can't locate my mac but messages are dilivered to it

    I can send messages to it, but it has absolutely no clue where in the world it is. how to solve this problem?

  • Been asked I'm sure but I need to know about files on Ipod

    I want to pull all the files off my Ipod and completely redo it. Can anyone please explain how I can do that. I'm not sure which Generation it is but I know it's an older one. 15GB model If anyone understands what I'm trying to ask can you please exp