cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Files to be archived in Different Directory

nidhi_srivastava22
Active Contributor
0 Kudos

Hi Experts,

We have a requirement in which we need to pick 5 files from different locations and need to archive those files at 5 different location.

Now, it is a dummy scenario so I don't want to create multiple dummy scenarios.I want to use only one File Adapter to archive multiple files at multiple locations.

  • I am sure that in File adapter we can add additional file with directories, to fetch the files.
  • Not sure about archiving to multiple directories? Is it possible?

Can we give more inputs here, for archiving multiple files in multiple directories.

Please let me know your views on this.

Thanks,

Nidhi Srivastava

Accepted Solutions (0)

Answers (4)

Answers (4)

manoj_khavatkopp
Active Contributor
0 Kudos

Do u have any relation between the filenames and the folder? If yes you can do using this by 1 ico with one sender channel and 6 receiver channel out of which 5 channels are pointing to archive folder and you need to mention condition in reciver determination/interface determination using Asma parameter filename and the 6th channel is actually pointing to your actuall receiver...

In sender channel you need to mention all these 5 folders in additional files. 

former_member183249
Active Participant
0 Kudos

Hi Nidhi,

The above functionality can be achieved in two ICO instead of multiple ICO.

1st ICO:

     File ----> File

          ( This will Pick file from different location and archive in single archive directory).

2nd ICO:

     File ---> File

          ( This ICO will pick files from common directory and place in different directories as per the identifier in name of the file.(Use Dynamic Configuration for identifying directories))

From this approach you can achieve above functionality.

Regards,

Rahul

former_member183249
Active Participant
0 Kudos

Hi Nidhi,

As Neil said you need to use multiple file receiver to archive files in specific archive folder.

There is no standard approach for this.

Regards,

Rahul

neilpadilla
Participant
0 Kudos

Hi Nidhi,

You can only use one archiving folder in the Sender Channel.

If you want to archive the files to their specific archive folders, it would be better to create different receiver File channel and use conditions for routing.

Regards,

Neil