Skip to Content
author's profile photo Former Member
Former Member

Routing Message based on FileName

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 09, 2011 at 03:10 PM

    did you try to use the context object and XPATH functions to help you out.

    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 09, 2011 at 03:16 PM

    Since mapping is not involved you might have to use a custom module in sender adapter to determine the 10 th character and to set the location dynamically.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.