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

Similar Messages

  • How can I Fetch the error message from a OAF page

    Hi,
    A confirmation message is coming on the page,I want to catch the error message and depending on its value want to add some validation.
    Is that possible to fetch the error message from the page?

    is it a confirmation message or an error message ?
    Code in the OAF page would be raising an OAException with a message name defined in message dictionary.
    you would need to look at the code to understand where this is thrown from and add your validation there.
    Tapash

  • Raise business events from BPEL

    How to raise business events from BPEL process?
    Related questions -
    1. Is it possible or good to address this by embedding Java code in BPEL process that raises the business event? If so, what additional jar files should be included?
    2. Any links on API to raise the business events from Java code?
    3. Any links that describe how to raise the business events from BPEL process?

    Hi Guillaume,
    Thanks for your reply.
    Please find below environment details.
    EBS 11.5.10,
    Stand alone SOA Suite v10.1.3.1
    Oracle Apps Adapter
    I am trying to capture PO approval event ('oracle.apps.po.event.xmlpo') raised by BES in BPEL PM.
    I see in the BPEL PM logs that there is a handshake happening between EBS-BES and BPEL PM. But after the handshake, some XML DOM parser errors are thrown.
    I have pasted the error seen in BPEL PM log below
    <2007-08-01 11:33:18,000> <INFO> <default.collaxa.cube.engine> <CubeEngine::loadAllProcesses>
    26 processes have been loaded for BPEL domain "default".
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage: Received TranslationException
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
    ORABPEL-11211
    DOM Parsing Exception in translator.
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:139)
         at oracle.tip.adapter.aq.database.MessageReader.translateFromNative(MessageReader.java:1179)
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:533)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:189)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:291)
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:134)
         ... 6 more
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage: Received TranslationException
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
    ORABPEL-11211
    DOM Parsing Exception in translator.
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:139)
         at oracle.tip.adapter.aq.database.MessageReader.translateFromNative(MessageReader.java:1179)
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:533)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:189)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:291)
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:134)
         ... 6 more
    From the initial assessment, it looks like the event schema defined in BPEL PM and BES event schema mismatch. But I do not know, how to correct it.
    Please let me know, if you have any suggestions in overcoming this issue.

  • ALV Grid editable - How to raise the data_changed event from outside object

    Hi,
    i'd like to like to raise the data_changed event from outside the ALV-Grid object in order to display errors to the user.
    For example a new row was inserted within the program. The user has only to complete the missing informations. Before saving the transactions the program has to execute some semantic checks. The errors of this check process should be shown to the user by creating an instance of the cl_alv_changed_data_portocol object.
    Thanks.
    Regards

    You don't need to raise the data_changed event to perform the edits or to issue messages using cl_alv_changed_data_protocol.
    The following assumes you have an ALV grid object g_alv based on the CL_GUI_ALV_GRID class.
    You can mark the inserted records upon insertion as selected using the set_selected_rows method, and then retrieve these rows later using get_selected_rows and perform necessary edits.
    Save the row number of each inserted row into a table of the appropriate type (see the method definition for this):
    DATA: t_index_rows    TYPE  lvc_t_row.
    DATA: s_row_no        TYPE  lvc_s_roid.
    DATA: t_row_no        TYPE  lvc_t_roid.
    Load entries into t_row_no after each insert.  Capture the row number and save in the table t_row_no.
    e.g.
    PERFORM insert_row USING s_row_no-row_id.
    APPEND s_row_no TO t_row_no.
    FORM insert_row would have whatever code you are using to insert the row.  Save the row id into s_row_no-row_id (which is an INT4).
    When done with all inserts do the following
      IF t_row_no[] IS NOT INITIAL.
        CALL METHOD g_alv->set_selected_rows
          EXPORTING
            it_index_rows            = t_index_rows
            it_row_no                = t_row_no
            is_keep_other_selections = 'X'.
      ENDIF.
    Then, if SAVE is pressed without the data_changed event having been raised (such as if the user just pressed SAVE without changing anything), use method get_selected_rows to retrieve the rows that were inserted and perform the necessary edits.
      DATA: l_t_rows    TYPE lvc_t_row.              " ALV control: Table rows
      CALL METHOD g_alv->get_selected_rows
        IMPORTING
          et_index_rows = l_t_rows.
    Loop through l_t_rows and use the row as an index into the grid, perform the necessary edits, just as you would if the data_changed event had been raised.
    If any edits fail, then send messages to the user, abort the save, and re-display the grid.
    Remember to refresh the t_row_no and t_index_rows tables if you load a new data set.
    You can also use a similar technique with the data_changed event to mark each changed row as selected by saving the row ids, and then you only have to update the changed rows on SAVE, which can minimize database I/O.
    Good luck.
    Brian

  • Call business event from oracle workflow

    Hi,
    how to call business event from oracle workflow ?
    if possible, could you give any sample code.
    Thanks.

    In short terms: assign values to the attributes that compose the payload of the event. Then raise it. Here a simple example of raising the Flex Field compilation event:
    declare
    l_application_id fnd_application.application_id%TYPE := &1;
    l_descriptive_flexfield_name varchar2(200) := '&2';
    l_application_short_name fnd_application.application_short_name%TYPE;
    l_parameters wf_parameter_list_t := wf_parameter_list_t();
    begin
    SELECT application_short_name
    INTO l_application_short_name
    FROM fnd_application
    WHERE application_id = l_application_id;
    wf_event.addparametertolist(p_name => 'APPLICATION_SHORT_NAME',
    p_value => l_application_short_name,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'APPLICATION_ID',
    p_value => l_application_id,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'DESCRIPTIVE_FLEXFIELD_NAME',
    p_value => l_descriptive_flexfield_name,
    p_parameterlist => l_parameters);
    wf_event.raise(p_event_name => 'oracle.apps.fnd.flex.dff.compiled',
    p_event_key => (l_application_short_name || '.' ||l_descriptive_flexfield_name),
    p_event_data => NULL,
    p_parameters => l_parameters,
    p_send_date => Sysdate);
    end;
    Regards.

  • How to Migrate Oracle Apps Business Events

    Hi,
    How to Migrate Oracle Apps R12 Business Events from DEV environment to STAGE and STAGE to PRODUCTION environment?
    Please help me as early as possible.
    Thanks,
    Sumit

    I have opened this link and I didn't get exactly because I am new in Business Events.
    Can you please help for simple steps for migrate Business Events from DEV to STAGE or TEST environment.
    Your prompt reply will highly appreciated.
    Thanks & Regards,Complete the steps under "Step 1: Locating and Downloading Business Events" and "Uploading Annotated File Back to a Database" sections to download/upload business events.
    Thanks,
    Hussein

  • How do i delete a Facebook event from my iPhone 5? (there is no delete button or edit button)

    Hi
    I cannot delete an facebook event from my Iphone 5. This event has been accepted by email invite.
    There is no edit or delete button at the top or bottom of the screen when I tap the event to search out its details.
    How do I remove such an event from my Ical calendar on my Iphone 5?

    I am not sure how this works but it seems that it may be all or nothing.
    To turn off Facebook events on your device:
    Settings > Facebook > Calendars > Off
    If you do not want to disable everything, maybe this thread will help:
    https://discussions.apple.com/thread/4349443

  • How can i import my calendar events from google calendar to ical?

    how can i import my calendar events from google calendar to ical?

    To set up CalDAV support for Google Calendar in Apple's iCal, follow these steps:
    Open Apple iCal, go to Preferences and then the Accounts tab.
    Click on the + button to add an account.
    In the box that pops up, enter a description for the account and your Google Account username and password.
    Under Server Options, add the following URL:
    https://www.google.com/calendar/dav/[email protected]/user//www.google.com/calendar/dav/[email protected]/user
    Replace '[email protected]' with the email address that you use to log in to Calendar. Make sure to include the '@domain.com' portion (which is @gmail.com for Gmail users) in this section.
    DO NOT substitute your username for 'user' at the end of the URL.
    Leave the Use Kerberos v5 for authentication option unchecked.
    Click Add.
    Under the Delegation tab, select the calendars you'd like to add to iCal by checking the boxes next to them. You may need to hit refresh to get the latest list of calendars.
    Add your email address to your Address Book card by selecting Add Email. You'll be prompted to add your email address only if your address is not already in your Address Book.
    You won't be able to invite or email guests to Google Calendar events within iCal if your address is not in your Address Book.
    Your Google Calendar will now appear in iCal's list of calendars, and changes you make to your Google Calendar in iCal will be reflected when you sign in to Google Calendar.
    Event information will automatically refresh every five minutes. You can change this interval by opening the iCal > Preferences > Accounts menu and selecting a new refresh interval under the 'Refresh calendars' drop-down. Keep in mind you can also force a refresh by selecting a calendar and pressing the Apple and R keys at the same time.
    Calendars that are checked but disabled have already been added to iCal - you can remove them from within iCal.

  • How to remove all the cleaup events from DBA_AUDIT_MGMT_CLEAN_EVENTS

    Dear gurus,
    how to remove all the cleaup events from DBA_AUDIT_MGMT_CLEAN_EVENTS
    Arun

    Hi,
    Take a look:
    http://www.morganslibrary.org/reference/pkgs/dbms_audit_mgmt.html
    Regards,

  • I have a iphone 5. How do I search for a event from 2013 under search? I do have "all events" selected

    I have a iphone 5. How do I search for a event from 2013 under search? I do have "all events" selected

    I would check, but I believe I have read that the calendar only lets you search back in the current year. You might find additional information about that in the User Guide. http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    What happens if you go back to a month in 2013, do you see a date with any events in it? I'm not saying the calendar is deleting data, just that you cannot search earlier than the current year.

  • How can i call mouse click event from keypress event???

    How can i call mouse click event from keypress event???
    I want same GUI changes to be occured at key press.....i.e . button going down & comming up.....
    for calculator

    Put all the code that happens on those events into a method. Then call that method from both events.

  • 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

  • How can I get my ical events from my iMac to my iPhone? Anything I entered into ical on my iPhone will transfer to ical on iMac when plugged in, but not vice versa.

    How can I get my ical events from my iMac to my iPhone? Anything I entered into ical on my iPhone will transfer to ical on iMac when plugged in, but not vice versa. I think I have changed my iPhone (after looking at similar questions) to iCloud, but it's still not syncing.

    You need to sign into your iCloud account on your Mac, and check the Calendar option. System Preferences>iCloud, sign on your iCloud account, check the apps you want to sync with your device.
    Cheers,
    GB

  • I have Iphone 4, version 4.3.3 (8J2) How can i remove the brightness toolbar from the main page, below the applications above the shorcuts?

    I have Iphone 4, version 4.3.3 (8J2) How can i remove the brightness toolbar from the main page, below the applications above the shorcuts?

    There is no brightness toolbar unless your iPhone is jailbroken.  If so, you can try to restore to remove the JB.
    The only place brightness exists is under Settings.

  • To get date Parameter from an OAF page

    Hi,
    I want to get a date parameter from an OAF page and pass them to a query in Vo as binding variables.
    How can that be done.
    I tried this to get the date from my page but it gives an error when I pass it to the query-
    String v_date = pageContext.getParameter("StartDate");

    My CO --------------------------
    if( pageContext.getParameter("Submit") != null)
    String userid = (new Integer(pageContext.getUserId())).toString();
    String personid = (new Integer(pageContext.getEmployeeId())).toString();
    String v_date = pageContext.getParameter("StartDate")+"";
    String v_end_date = pageContext.getParameter("EndDate")+"";
    System.out.println("call to process request0 : " + userid);
    System.out.println("call to process request0 : " + personid);
    System.out.println("call to process request0 : " + v_date);
    System.out.println("call to process request0 : " + v_end_date);
    Serializable[] params = {personid,v_date,v_end_date};
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String empUserid = pageContext.getUserName();
    System.out.println(pageContext.getUserName());
    System.out.println("Calling initMoverQuery");
    am.invokeMethod("initMoverQuery", params);
    System.out.println("Call out of initMoverQuery");
    My AM------------------------------------------------------------
    public void initMoverQuery(String pid,String sd,String ed)
    System.out.println("In init Query of AM" +pid);
    EmployeeMoverVOImpl vorep = getEmployeeMoverVO1();
    Number personid = new Number(Integer.parseInt(pid));
    System.out.println("user id"+ personid);
    System.out.println("start date"+ sd);
    System.out.println("end date"+ ed);
    if (vorep == null)
    MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "EmployeeMoverRepVO1")};
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    if (!vorep.isPreparedForExecution())
    // vorep.initQuery(personid,sd1,ed1);
    vorep.setWhereClauseParam(0,personid);
    vorep.setWhereClauseParam(1,sd);
    vorep.setWhereClauseParam(2,ed);
    vorep.executeQuery();
    System.out.println("End SP VO Query");
    }

Maybe you are looking for

  • Since installing the latest update I can no longer get on my wifi network

    Help! Since installing the latest update I can no longer access wifi.

  • Canon GL2 and Belkin 800/400 9-pin to 4-pin firewire cable not working!!!

    I have my Canon GL2 connected to my I-Mac OSX version10.7.3 with a Belkin 800/400 9-pin to 4-pin firewire cable and the computer is not acknowledging the camera or firewire cable. Trying to get footage into Final Cut Pro 10 off mini dv tape.

  • Final Cut Express - Aspect Ratio

    Where do I set the aspect ratio in Final Cut Express? I find that often I import 4:3 clips, and FCE wants me to work with them in a 16:9 Sequence, so I get letter boxing. Sometimes, FCE seems smart enough and says "hey should I fix this", but sometim

  • IPod will not shut off

    Just yesterday I realized that I my IPod wasn't turning off when I pressed down on the bottom buttons. I tried running a diagnostic and it said everything was okay. I really don't think that it is a software problem, I am starting to wrry it may be h

  • Airport Base Station - Password Not Known

    I bought an used airport extreme base station in the internet. The station works, I can go to the internet but I can't make any changes by the airport administration programm. It always asks me for a password which I don't have. What can I do?