16.database Merge Operation
16.database Merge Operation
We have to read data from the file and insert the data into the table.
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Open the BPEL. Your BPEL should look like below:
Now create a File adapter to read the data(either physical path or logical path). Wire the adapter to BPEL.
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Now create employee table to store the employee file content.
ename varchar2(30),
esal varchar2(10),
ephoneNumber varchar2(20));
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Click on Next>
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Click on Import Tables and import the employee table you have created just now.
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Click on Next>
In the next screen select eno as the primary key as shown below:
Click on Next>
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Click on Next>
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Click on Next>
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Click on Next>
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Click on Finish.
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Now wire the dbadapter to BPEL.
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Now open the BPEL. Your BPEL should look like below:
Now take a receive activity, wire to file adapter and configure it as shown below:
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Now click on apply and ok.
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Now take invoke activity after receive activity and wire it to database adapter.
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com
Now take a transform activity and transform file content to invoke(DB).
Now modify the file content as shown below and test the service again
2,mohan,20000,9848012342
3,pradeep,20000,9848012343
4,rajesh,20000,9848012344
5,pandu,20000,9848012346
Friendz Corps
Suit #203, B S Residency, B K Guda Road, S R Nagar, Hyderabad-16
Mob: +91 8143 649946, Lnd: +91 40 66733228, Mail: training@friendzcorps.com
www.friendzcorps.com