Domain value mapping(DVM) is very useful feature of BPEL that you can use to transform one vocabulary to another. You can change one value to another. Recently i had a requirement to convert Arabic values to their corresponding English values. So i used DVM in my Transformation fileto perform this.
Following are some steps to to use DVM in your BPEL and Transformation file to map one value to other.
1) Right click on Project and search type dom you will find Domain Value Map, select it and click ok.
Following are some steps to to use DVM in your BPEL and Transformation file to map one value to other.
1) Right click on Project and search type dom you will find Domain Value Map, select it and click ok.
2) Give name and then in first domain name give some name like Arabic value in my case and give its value i.e in Arabic. Now give the name to second Domain Value like English Value in my case and give Value in English like i did. i.e first Domain value has value in Arabic and second domain value has value in English, click OK
3) Now .dvm file opens and here you can add as may values as you want like i have shown below snap.
4) Now to add this DVM to your Transformation file, go to transformation file and then choose advance functions from Drop down and then select DVM functions and then drag and drop lookupValue1M to your xsl file as shown below.
5) Double click and open newly dragged function and give the following detail to your dvm function. Click on Search icon to find DVM file in dvmLocation field, then also select your source and target column name i.e i am converting from Arabic to English so Arabic is my source value and English is my target value. Now you need to select source value i.e which value you want to change, in my case I am converting Arabic UOM to English and that Arabic value in Coming in UOM field so i will select that, you need to hit Ctrl+Space and here you can see you variables .
I hope this would help.