Business Event not triggering the PLSQL procedure.. What to do?

We need to call a plsql procedure when the GL Approval workflow has ended with approval. I thought i could do this by customizing the relevant business event.
We are on EBS 12.1.3 with RDBMS : 11.2.0.3.0.
I saw that the business event oracle.apps.gl.Journals.journal.approve was disabled currently. I enabled it and created a subscription for it. Subscription was a PLSQL procedure. Currently, for test purpose only thing it is doing is to insert a row into a table.
Business Event Subscription settings:
System: ORDEBS.SYSTEM.COM
Triggering Event
Source Type:Local
Event Filter: oracle.apps.gl.Journals.journal.approve
Execution Condition
Phase: 100
Status: Enabled
Rule Data: Message
Action Type:Custom
On Error: Stop and Rollback
Action
PL/SQL Rule Function: XX_GL_APPROVE_BE_PKG.Get_Attributes
Priority: Normal
Documentation (Not sure what value to be given for these. I went with the below values.)
Owner: Company Name
Owner Tag: Custom Schema
Using the below query i can see that the business event is getting called when the approval happens (One row added each time approval happened). But I cant see any rows in the table where it should insert a row. What could be going wrong? How can i verify that the procedure has been called?
select * from WF_DEFERRED where corrid ='APPS:oracle.apps.gl.Journals.journal.approve'
Procedure:
CREATE OR REPLACE PACKAGE BODY APPS.XX_GL_APPROVE_BE_PKG
AS
PROCEDURE Get_Attributes
IS
BEGIN
INSERT INTO xx.xx_test_table VALUES ('From BE');
COMMIT;
END Get_Attributes;
END XX_GL_APPROVE_BE_PKG;

Thanks Alejandro. Now this is working.
Changes i made:
1. Added the WFERROR workflow as a subscription to this event. So i could see that the function i am calling from the event did not have proper signature.
2. Changed the function signature to have standard parameters like:
CREATE OR REPLACE PACKAGE BODY XX_GL_APPROVE_BE_PKG
AS
function subscription(p_subscription_guid in raw,
p_event in out nocopy wf_event_t) return varchar2 is
l_result varchar2(20);
begin
insert into xxvtv.xxvtv_test_table values ('From BE');
commit;
exception
when others then
wf_core.context('XX_GL_APPROVE_BE_PKG','function subscription', p_event.getEventName(), p_event.getEventKey());
wf_event.setErrorInfo(p_event, 'ERROR');
return 'ERROR';
end subscription;
END XX_GL_APPROVE_BE_PKG;
3. Changed the owner name and owner tag both to the custom schema name (XX)

Similar Messages

  • Business Event not triggering the SOA BPEL Process with OA Adapter

    Hello Gurus,
    I am working on Business event "oracle.apps.per.api.employee.create_employee" and the event is getting triggered when creating an employee from EBS.
    The message has come till WF_BPEL_QTAB(I could seeit) and in "READY" status.We have a SOA BPEL Process that is subscribed to the event "oracle.apps.per.api.employee.create_employee" using OA Adapter.
    The issue is that the SOA BPEL process is not getting triggered and it is not dequeing the message from WF_BPEL_Q.
    Please let me know if I have missed any steps on SOA BPEL side.
    Note: Agent Listener is up and running.
    Thanks,
    Sunil

    Ofcourse, I subscribed to the business event using BPEL. Ideally the instances should be created and I should be able to receive the standard payload.
    Yes the JNDIs are correct. We have other business events working in the same fashion and we are using same JNDI.

  • When people call, they got a busy tone even though i do not use the phone. Whats wrong

    Question: when people call, they got a busy tone even though I do not use the phone. Whats wrong?

    Hey rolffsweden,
    You might have Do Not Disturb turned on - I would check that first:
    To enable/disable, tap Settings > Do Not Disturb. When Do Not Disturb is on, a "moon" icon will appear in the status bar.
    or
    You can enable/disable Do Not Disturb in Control Center.
    from: iOS: Using Do Not Disturb
    http://support.apple.com/kb/HT5463
    Welcome to Apple Support Communities!
    Have a great day,
    Delgadoh

  • Client to run the plsql procedure web page

    Hi,
    From the pc client of windows 98 I want to browse the web page which created by the plsql procedure on the windowsNT OF ORACLE SERVER DATABE 8.0.5 WITH ORACLE APPLICATION SERVER.
    I used the internet explorer from the client but I failed
    But when I browse thru the server it is running.
    How to use the client to run the plsql procedure to display its web page thru the TCP/IP (LAN NETWORK)???

    Hi
    Browsers do not allow you to communicate with the computer except in a very limited way, and accessing files to run them is a definite no, which if you think about it is a sensible approach otherwise there is nothing to stop anyone opening any file/app on a persons computer, (it can be done by getting your user to download and approve the installation of a small 'interface' program, which is what hackers also do to gain control of a computer).
    An alternative may be to create an air of flex app to do this that requires connection to your server in order to play.
    PZ

  • Busy and free in the availability tab, what are the functions of these

    Busy and free in the availability tab, what are the functions of these tabs

    They are supposed flag whether or not the event mark time as unavailble to folks who invite you to their events using iCal

  • I can't get iWeb started. It does not complete the starting procedure

    I can;t start iWeb. It does not complete the startup procedure, and then becomes frozen. I've installediWeb 3.04, but same results. What can I do?

    Try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    Happy New Year

  • How do we pass the Business Event Data in the EBS business Events subscription Testing?

    HI,
    How do we pass the Business Event Data in the EBS business Events subscription Testing?
    --Khaleel

    Hi,
    Just to add what Dianne has said, whenever you are carrying out any configuration/ customising, you have to test all the related scenarios. For this you have to take help of the End Users who are in a better position to carry out this testing. If the affecting modules like FI, MM, SD, are many, then you also have to see how the cross-module enties are flowing.
    Regards,
    amit

  • Which business event is triggered when terminate employee?

    Hi,
    I need to know which business event is triggered when press terminate button in end employment form.
    Edited by: 969359 on Mar 18, 2013 5:36 AM

    It must be oracle.apps.per.api.person.delete_person or oracle.apps.per.api.person.update_person.
    Please check.
    FYI: Both of these events are disabled at the instance I was checking. So makes sure they are enabled before you test the events.
    Regards,
    Peddi
    Edited by: Peddi on Mar 18, 2013 3:31 PM

  • I would like to be able to edit MP4s in CS5.  I can not open the file. What am I missing?

    I would like to be able to edit MP4s in CS5.  I can not open the file. What am I missing?

    According to the publisher For GoSystem Tax, the 32-bit version of Internet Explorer 8, 9, or 10 is required.  Which means it can't be accessed from an iPad.  This seems weird.  I would recommend you contact the publisher.

  • How can I display event notes on the relevant event in week/day view?

    Hi folks,
    I'm looking for a way to display the event notes on the actual event in week or day view.
    This will greatly help plan out my week (especially for repetitive events with custom notes for each occurrence).
    I can understand that Apple ommitted this feature to avoid clutter on short-duration events perhaps?
    Clicking on the event (or using the Inspector) to see the notes is not an option. I need an overview that can be viewed at a glance or even printed.
    Looking forward to your suggestions...
    Trev

    Hi Trev,
    With iCal as it is the only suggestion I have would be to add the full text to the title of the events.
    FYI, this is a user to user forum. By posting here you are not guaranteed someone from Apple will read it. If you'd like Apple to know about this I suggest you send them feedback.
    Best wishes
    John M

  • I cannot shut dow my MacBook Pro using the apple icon (as it was suppose to be), actually I have to press and hold the on/off buttom. I have taken twice for Mac dealer and they did not solve the problem. What must I do?

    I cannot shut dow my MacBook Pro using the apple icon (as it was suppose to be), actually I have to press and hold the on/off buttom. I have taken twice for Mac dealer and they did not solve the problem. What must I do? I would to remark that I have installed 2 antivirus and uninstalled one of them. Since then I have facing this troublesome issue. Thanks

    Uninstall the other AV software. They are not needed. All they do is cause trouble like you are having now.
    If you have been forcing the Mac to shut down with the power switch you may nave corrupted your disk. You should repair it with disk Utilty to remove any corruption the shutdwons may have cased.
    Allan

  • I am unable to sync my iPhone4 iCal to my Mac iCal. Snow Leopard does not support the Cloud. What do I do?

    I am unable to sync my iPhone4S iCal to my Mac iCal. Snow Leopard is my OS and it does not support the cloud. What do I do?

    To makeuse of iCloud you will have to upgrade your Mac to Lion or Mountain Lion, provided it meets the requirements.
    The requirements for Lion are:
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    To purchase it you will have to ring Apple at the number given at the bottom left of this page.
    The requirements for Mountain Lion are listed here:
    http://www.apple.com/osx/specs/
    It is available from the Mac App Store (in Applications).
    You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • I have installed Adobe Creative Suite 5 Master Collection on a 2nd computer but now it will not accept the seriall. What can I do?

    I have installed Adobe Creative Suite 5 Master Collection on a 2nd computer but now it will not accept the seriall. What can I do? I'm using a fresh install of windows 8.1

    What exactly means "will not accept"?

  • Suddenly all my albums in Photos are blank.  The photos are still in the camera roll but not in the albums.  What happened and how do I recover them all?  Are they in my icloud?  Also the photos are clear as thumprints but when I touch it to zoom are blur

    Suddenly all my albums in Photos are blank.  The photos are still in the camera roll but not in the albums.  What happened and how do I recover them all?  Are they in my icloud?  Also the photos are clear as thumprints but when I touch it to zoom are blurry.  what gives?  They were all completely clear and in the albums when I last used my ipad??  Would doing the "Reset" under General settings do that?  When I returned from Europe I reset my ipad to get it in the right time zone etc. 

    Reboot.   Press and hold the home and sleep buttons until the apple logo appears. Ignore the red slider.

  • HT3042 when i try to send songs to my ipad it says 'this device does not have the necessary services' what can i do about this?

    when i try to send songs to my ipad it says 'this device does not have the necessary services' what can i do about this?

    call monster, the manfacturer of beats and ask them: http://beatsbydre.com/support/international-support-contact-numbers,default,pg.h tml

Maybe you are looking for