Friday, October 15, 2010

Integrating SOA Suite 11g(BPEL) with ADF

The main purpose of this post is to give you some basic idea on how to call a bpel process from ADF in SOA Suite 11g.

For this purpose you need SOA Suite 11.1.1.3 and Jdeveloper 11.1.1.3.

I have created a simple process which just assign the input variable to output variable.This is how it should look like.

It is just a simple hello World process i have made it synchronous as you can see in the figure below



Now deploy this process in to your SOA suite and test it ,when you will click on test you will get the wsdl for this web service



Copy the url from there



Now Go to your jdeveloper and create a new ADF application



Let the default option be there as you keep on saying next








Say next and then finish



Now click on Model and create a new Web Service DAta control



Give it some name and paste the url which you have taken for the deployed process

then say next



Select the available item in left side and move it to right hand side as shown



Following will be created automatically for you as shown





Now we will create an ADF page for it.

click on ViewControllerand create a new JSF page



Say ok

give it some logical name and say done



You will get a screen like this



Now in the data control click on Process (string) and drag and drop it to the center panel and click on ADF form as shown



Say ok



Again drag and drop string in the middle panel choose text and then ADF with text/label as shown




Now you can change the label of input and output variable by selecting and going to property inspector.




ONce you have changed it save all the changes.

Right click on page and say run



It will run and open a new page as this



Now give some input and click on process and you will get the output ,in my scenario i have used a simple assign activity hence i am getting the same output as input.



This is just an example you can use this concept to design your own.One important thing over here we have decided to create a new managed bean also for our adf page hene a java code is also created ,you can make changes in it to change your output or do some manipulation.This is just a pointer if you are good in java you can make changes as per your requirement.

I am just pasting a screen shots for the link between the managed bean and ths jsf



happy Working :)

1 comment:

Anonymous said...

U rock Man,Nice post.
For sure i am your follower