cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member201264
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

zameerf
Contributor
0 Kudos

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

nabendu_sen
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

former_member201264
Active Contributor
0 Kudos

Hi All,

One more thing there is no mapping at all.

These files to go as is to to 3 target systems based on directory names.

Regards,

sreeni.