Here we are going to demonstrate QueryByExample.
Create a synchronous BPEL.
Now your composite.xml will look like below:
Your BPEL should look like below:
[email protected]
Now modify your xsd. Your XSD should look like below:
Now take database adapter and navigate till operation selection screen:
[email protected]
Now select Query by Example operation.
Click on Next>
[email protected]
Import the employee table you have created.
After import your wizard should look like below:
[email protected]
Click on Next>
Select eno as the primary key in the next screen.
[email protected]
Click on Next>
[email protected]
Click on Next>
In the next screen, select the columns as shown below:
[email protected]
Click on Next>
[email protected]
Click on Next>
[email protected]
Click on finish.
[email protected]
Now your composite.xml will look like below:
Now wire db adapter to bpel.
Now your composite.xml will look like below:
[email protected]
Now open your BPEL.
It will look like below:
Now take invoke activity, wire it to dbadapter and configure it as shown below:
[email protected]
Now click on apply and ok.
Now your BPEL should look like below:
[email protected]
Now take a transform activity before invoke activity and transform the input to invoke input
as shown below:
Now make, deploy and test the application.
[email protected]
[email protected]