on 11-12-2008 3:05 PM
Hi All,
My scenario:
I have source txt file that is seperated by semicolon.
I need to do Receiver determination that for some value it shoud go to Receiver A and for other value it
should go to Receiver B.
File that is reaching Receiver A and Receiver B should be again txt in nature.
I thought this approach:
1. Sender File Adapter (File content coversion) -- from txt file to xml file
2. Rec Determination --- using XPATH
3. Receiver File Adapter (File content coversion) -- from xml file to txt file
Is there any other way for this?
Regards
Hi
There are a few approaches that could be considered.
1) XPATH:
Conditions using the field on which the receiver needs to be determined
2) If the conditions are too long you could think of using Context Objects. Hence while definining the conditions in receiver determination you could use either xpaths or context objects.
3) Enhanced reciever determination: Here you would use the basis component while defining the message interface. Write a simple UDF for determining the receiver and use enhanced receiver determination.
Refer for more details:
Regards
Monika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rick
Approach is correct.
One doubt on your requirement
that for some value it shoud go to Receiver A and for other value it
should go to Receiver B.
Some value here means the XPATH you want to set right?
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes,
this is the right approach for your scenario.do necessary parameter settings for FCC.
do
Conditional receiver determination
with usage of XPATH Expression editor.
Thanks.
Edited by: sudhir tiwari on Nov 13, 2008 4:40 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rick,
How many records are there in you file?
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In my opinion this is the correct approach. In Receiver Determination just use XPATH (your step no 2).
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.