Skip to Content

Multiple Source Directories with Single File Adapter and Multiple Receiver AS2 Systems

Hi Experts,

My requirement is, I need to pick 3 files from a source directory and 2 Directories from advanced selecton of Source files in File adapter .

Is it possible to pick three file from directories and send the 3 files to 3 different Receiver AS2 systems as below mentioned way?

1. From source directory, File1 should go to RCVR1

2. From Directories from advanced selecton of Source files (Say Directory2) to RCVR2.

3. From Directories from advanced selecton of Source files (Say Directory3) to RCVR3.

Again if three files are there at a time in three directories, is it possible to send these files to the respective receiver systems.

Regards,

Sreeni.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2013 at 03:45 PM

    Sreeni,

    sorry, don't understand your need.

    What do these three files have to do with each other? Why don't you simply define three sender adapters, one for each directory/file? Is is straight forward then to route these files to separate targets.

    Do you want PI to wait until all three files are ready to be picked up? Please explain in more detail.

    Regards,

    Rolf

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2013 at 03:57 PM

    Hi Sreeni,

    you can achieve your requirement by Multimapping. validate based on any one of the field from that file ar root node, and direct to the corrosponding receiver service.

    Regards,

    prasanth.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2013 at 04:02 PM

    Hi Sreeni,

    I think you have any common field for all these 3 Files and you want to perform some type of transformation (Otherwise you can define 3 separate interfaces). Use ccBPM. You can achieve this and not a big challenge.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2013 at 07:41 PM

    Hi Sreeni,

    Whether the 3 input files has a specific file name pattern?

    If so, enable adapter specific identifiers(File Name) in Sender File adapter and in Receiver Determination you can select the context object as 'FileName' and then give contains pattern operator to check the file name pattern and route the file to respective AS2 receiver.

    Alternately, since you mention 3 different input directories, you can also check for the context object 'Directory' , check for the value and do a similar routing to each AS2 receiver.

    Regards,

    Zameer

    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.