BPEL Database Polling - Oracle SOA 10.1.3.x in JDeveloper (Asynchronous)

By M&S Consulting (Ashwin) on Jun 3rd, 2009
Filed Under Technical Tips // Tags: ,

Polling for changes in a database has been a requirement for systems for a very long time. With Oracle BPEL, of course, this need exists and we will review one way you can go about this.

Note: This particular article is not meant to provide a detailed background for each step, nor does it go through showing how to test end-to-end, but feel free to ask questions in your comments and I will be happy to update any areas that you are confused about.

Objective

Create a BPEL process that would poll the database periodically for records with a specific flag.

Step-by-Step Walkthrough with Screenshots

Create an asynchronous BPEL project using JDeveloper BPEL Plugin

image1

image2

Click Finish and view the JDeveloper design view.

image3

Create a Database Adapter, by dragging and dropping ‘Database Adapter’ from the ‘Component Palette’ and begin configuring using the wizard.

image4

Click ‘Next’ and choose a name for the service that will be created and available for consumption by your BPEL process.

image5

Click ‘Next’ and select the appropriate ‘Database’ Connection from the drop down (or create a new connection if needed).

image6-500x3701

Click ‘Next’ and select ‘Poll for New or Changed Records in a Table’

image7

Click on ‘Import Tables’ and Select the table that you wish to poll.

image8 

image9

Once your table is selected:
Click ‘Next’
Click ‘Next’
Click ‘Next’

As you poll entries, you must decide on a way to read and mark entries. We have chosen to update a field, setting all values to “FALSE” since we do not want Oracle BPEL to automatically update a field as soon as it is read; instead, we want to update the value ourselves later in the process, once we are sure certain processing has been completed.

image10

image11

Note: Assuming that you will update the ‘Task_Completed’ Flag after processing the records, you might want to change the wsdl to modify polling parameters.

Modify the receive activity to get data from the new Database Adapter Service

image12

Bookmark and Share

Related Information:

  1. Asynchronous vs Synchronous BPEL Processes Asynchronous and Synchronous BPEL processes, as their names imply, process a request in parallel or sequenctially respectively. Screenshot: Invoke Asynchronous...
  2. Oracle BPEL Sensors for Real Time Event Publishing from Business Processes - A Design Perspective This article is a look at Oracle’s BPEL Sensor approach to publishing real time data and events for in flight...
  3. Salesforce.com Integration - Oracle Fusion Middleware SOA and BPEL Oracle Corporation has recently published a white paper written by M&S Consulting, where we take the opportunity to outline an...
  4. BPEL Not Good For Rapid Changes I am excited about BPEL’s proliferation. But for some organizations (specifically, IT shops), BPEL is being used in areas it...
  5. Discoverer - Public Connections for Oracle Applications with SSO While using SSO, in order to create a public connection to Oracle Discoverer for Oracle Applications, I suggest creating a...
  6. Oracle APEX Tutorial 2 - Parameterized Report Part 2 - Video Training This Tutorial is a guided walkthrough of section 3 of the Oracle APEX Advanced Tutorials....
  7. Invalid Nested Schema Loading Error with Oracle BPEL, AIA/PIP I faced this issue in the context of building an Application Business Connector Service (ABCS) using AIA / PIP, so...

Leave a Reply


Archives

Recent Comments

  • ashok.aggarwal said: Thank you for your comment, Stuart. I’m glad this helped you.
  • Stuart said: I’d really like to thank you for your post. It was really that simple.
  • ashok.aggarwal said: Your specific question is not very clear, however, in the context of implementing a LIKE...
  • Jonas said: Finally in print that a user is required to show the email option. Thanks.
  • syut.sa said: Thank you.

Calendar

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Featured Testimonial

"M&S has taken 'partnership' to a new level. They are not only a deeply skilled service provider, the M&S team is actually a mission critical component to our operations, taking on new initiatives as well as maintaining custom, open source, and COTS solutions."

CEO, MedPivot

Free SQL Service