We will be using SOA Suite 11.1.1.3 and Jdeveloper 11.1.1.3 for this exercise.
First of all start both you soa server and bam server from admin console.
Create a new SOA project

create a composite with bpel

Make it a synchronous process

make it a simple BPEL process,i.e. drag and drop an assign activity
and copy the input variable to output variable and save the project
so your process should look something like this.

Now first thing you need to verify is your SOA Server and BAM Server
are up and running or not.

One you verified start BAM console
http:\\host:port\OracleBAM

click on architect

and create a new data object.I have given data object name BPELDO and created only one field for it.Once it is done just say create data object

You can verify the data object thus created

Now go back to your jdeveloper and click on monitor tab for the bpel process to get the sensor button.

Now create a sensor variable

point it to input payload

now create a new BAM sensor action

Now in the next screen choose the BAM server connection and choose the data object that you have created.

once done select the input and choose the upsert option and click a create xsl option

Now in the xsl map the input variable payload to the data object input as shown below

So now you are done with the bpel process.Now deploy this to your soa suite.and invoke an instance,I invoked it using 123 as input and you can see that in my BAM data object
the same is been updated.

This is just a simple scenario you can use it in many case ,also the we can create active view to see the dynamically changing data as we see in case of flight chart which keeps on changing as per the status of flight.
There is one very important configuration which i have missed because i have already configured it at my end,you will get an error if you have not configured.
If you will see the BAM sensor then you will find that by default it uses the eis/bam/rmi connection factory we need to configure it.
Log into your admin console and click on deployment.
You will get there OracleBamAdapter
Click on that
You will get the eis/bam/rmi connection factory

and provide the details for your server

Now save the changes and now you shouldn't be getting any error.If you get some issue let me know.
No comments:
Post a Comment