Skip to Content
0
Former Member
May 09, 2011 at 02:44 PM

Routing Message based on FileName

47 Views

Hi all,

I hav a scenario where I need to route the file based on the file name.

for eg: if the 10th char of the filename is 'A' then it has to be placed in Location 1

if the 10th char of the filename is 'B' then it has to be placed in location 2.

Both sender and receiver are file adapters.

I thought of using condition in Intrface Determination (Context object) , but got stuck since I have to comapare only the 10th char not all the characters since other characters are dynamic.

Note: This is a pass through Interface and no mapping is involved.

Thanks,

Siva