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