on 07-05-2016 11:28 AM
Hi,
I have a proxy to file scenario which is a pass-through in which the output file is .csv.
And the selection of target directory is depends on a particular filed value in the input xml.
Example for Condition :
If field1 = {a, b , c } the the output file should be in folder1 otherwise folder2.
I am confused whether to go for JavaMapping or UDF or with ASMA
Thanks,
Gowtham Bhogi
Gowtham,
So i ve understood your requirement..you have created a structure for proxy with few fields say f1,f2,f3
and you are using f1 field to identify the folder which can be done with xpath condition editor as mentioned by Inaki , but this f1 filed should not be present in CSV file ...is my understanding right ?
if so then to remove the f1 field before you convert it to CSV using MTB you can try using remove payloadvaluebean and then convert the xml fields f2 and f3 to CSV.
You can check RemovePayloadValuebean here :
but i wonder if the remove payload value bean removes the filed for multiple occurrence or not.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
It is a pass-through scenario. All the fields should be available in .csv file.
Moreover, my problem is solved. I made a UDF making dynamic configuration for the folder selection using the below link on which the folder selection is dependent:
Dynamic file name for pass-through scenario - Process Integration - SCN Wiki
.
Thanks,
Gowtham
Hi Gowtham,
If you are in a pass-through scenario i understand with this that you don't have ESR development therefore you can't use java mapping, UDF or ASMA. AFAIK you can use variable substitution
Another option is to deploy the bean developed by Eng Swee Yeoh:
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gowtham,
My bad you explained it perfectly. You culd use the condition editor xpath option to determine the receiver if you would have a XML Xpath Condition in Receiver Determination - Process Integration - SCN Wiki
However you have a csv file, therefore you can't navigate in it, then if you want to maintain no ESR development you have two options:
1. Do a OS script
2. Do an own module java bean to change the path dynamically, in this solution you have the module developed by Eng.
Regards.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.