Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

Contact Us

Fusion Middleware
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new Click here to raise Support Ticket. Get reply within 48 hours.

Search Courses

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

In Fusion Apps, the concept of Business Event & subscription is still in place, however it has become easy to raise business events in Fusion Apps, with lesser programming. In addition to this, the listener of the business events is implemented in SOA. In case of 11i and R12, we have a Workflow Event listener that runs within the R12 tech stack itself.

In case of 11i and R12, we used to raise the business events using
1. WF_EVENT.RAISE API from PL/SQL Layer
OR
2.oracle.apps.fnd.wf.BusinessEvent.raise from Java/OAF Layer.

In Fusion Apps, we can raise business events from the BC4J layer as well, for example Entity Objects in ADF model layer. To do something similar in R12 you will have to write a piece of java code as shown in appendix of this article. However Fusion Apps provides a configurable solution for raising the event.

These business events can be picked up by the SOA Layer. Of course you will need a SOA project in place, with a SOA component named mediator that can listen to your business events. The mediator needs to be configured to listen to the specific business events of interest. After the event is identified, mediator can route the flow for further downstream processing in SOA, typically using a BPEL process component.

Alongside the name of the Business Event and the conditions, you can raise payload for the business event that will be available as parameter to the SOA Layer.

The image below shows Entity Object, which has a tab for Business Events.


You can publish the event when certain conditions are true

Add as many conditions that decide when the business event is raised.



Now that the event will be published under certain conditions, it needs to be processed in the SOA layer. For this a SOA SCA project will have to be developed and a mediator component will be defined. Within the mediator component, we can specific the name of the event that must be consumed. Effectively this creates a listener within the SOA layer to the business event that is raised in Fusion ADF layer. Once the mediator consumes the event, further downstream actions can take place for example some BPEL flow.

Follow the steps below to create a mediator component, in order to subscribe to a business event:
1. Using the file system, copy the XSD and event definition files for the business event into your SCA project's source path.
2. In the Application Navigator, right-click the project, and choose New.
3. In the New Gallery, expand SOA Tier, select Service Components and then Mediator, and click OK.
4. In the Create Mediator dialog, select the Subscribe to Events template. In the create Mediator dialog, Subscribe to Event of your choice
5. Click the Add icon to add an event.
6. In the Event Chooser dialog, click the Browse icon to navigate to and select the event's definition file, and then click OK.
.
7. Click OK to generate the mediator.
8. The resulting mediator (.mplan file) will be displayed, and then you can click the Add icon in the Routing Rules section to add a rule for how to respond to the event

Appendix code
Back to R12 world, for raising Business Event in R12.1 onwards from OAF is shown as below.
From the BC4J layer, an event can be raised using a code similar to below
    String eventName = "xxa2f.oracle.apps.hr.employee.invoke.changeEvent";
    String eventKey = "EmployeeKey";
    Connection conn = ((OADBTransactionImpl)getOADBTransaction()).getJdbcConnection();
   BusinessEvent event = null;
    try{
        event = new BusinessEvent(eventName, eventKey);
        event.setData(employeeEventData);
        event.raise(conn);
    }
    catch (BusinessEventException e) {
        throw new OAException("Exception occured when invoking web service - "+e.getMessage());
    } finally {
       getOADBTransaction().commit();
    }
    String respData = (String)event.getResponseData();
    return respData;


Anil Passi

Comments   

0 #1 Discount Guess watches 2012-09-19 20:43
Discount Guess watches
Nobody can take away your pain, so don’t let anyone take away your happiness.?
Quote
0 #2 Sybil 2014-04-14 07:11
Yes! Finally something about carpet cleaning agents.
Quote
0 #3 spider pest control 2014-04-19 12:54
Some insects and animals can be carriers of deadly diseases, such
as mosquitoes who carry the West Nile Virus. So even when
we retain our surroundings cleanse normal sight
can not acknowledge their existence. You'll be able to choose pest controller by measuring them to qualifications you call for.


Also visit my web site - spider pest
control: http://pestmanagementwaco.com
Quote
0 #4 professional carpet 2014-04-29 12:40
This method of cleaning uses a rotating cleaning pad to help loosen
dirt from the carpet so that it may be cleaned up easier than using just a vacuum.
The typical job is less than $100 and should cover any stairs and
rooms that you need to have cleaned. Now we start to move clockwise where love is, again
we have earth as a dominant element and the colour is pink.


Visit my blog; professional
carpet cleaning services Waco Texas: http://carpetcleaningwacotexas.com/contact-us/
Quote
0 #5 eliminate urine 2014-04-29 19:53
Termites have a head and a thorax; whereas ants have a head, thorax and abdomen.

While all parts of the country experience some rodent problems, there are specific types of AZ rodents that cause the biggest tr.
You'll be able to choose pest controller by measuring them to qualifications you call for.


My web-site: eliminate
urine odor from carpet: http://pestmanagementwaco.com/
Quote
0 #6 hubpages.com 2021-07-11 03:09
Thanks for another magnificent post. The place else may anyone get that type of info in such an ideal approach of
writing? I have a presentation next week, and I am on the
look for such info.

Check out my webpage ... hubpages.com: https://hubpages.com/@yakage9
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Aug 2021  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
        1
  2  3  4  5  6  7  8
  9101112131415
16171819202122
23242526272829
3031     

Enquire For Training

Related Items

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner