cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

SudhirT
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Rick,

How many records are there in you file?

Carlos

Former Member
0 Kudos

Hi,

In my opinion this is the correct approach. In Receiver Determination just use XPATH (your step no 2).

Regards,

Sarvesh