Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I copy fileS from one folder to another folder WITHOUT changing the name the files?

Hari SelvaOct 2 2014 — edited Oct 23 2014

Hello Experts,

I need to copy few files with the prefix "US", archive them and move them into a different folder using the file adapters without changing the file names.

Here is what I am doing:

I am creating one file adapter to read the file as an attachment, created another file adapter to write the file into a location by retaining the name of the file and having one mediator to pass the file from source to destination file adapters FOR EACH FILE.

Flow I see in the SOA app:

Source File Adapter --> Mediator --> Destination File Adapter ( for each file).

I would have to create about 50 flows like above for each file, if I follow the above approach.

Is there a way that I can use only one flow for all the files that starts with prefix "US"


Can I utilize the "Regular expression" at the File Filtering window (like "us*.txt") of the source File Adapter? The big issue is in the destination file adapter at the File Configuration step. I can't provide the file names for the outbound files based on the input file..


Please advise.

Thanks,

Harisudhan Selvaraj

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2014
Added on Oct 2 2014
9 comments
2,938 views