File channel ASMA issue: add .xml along with time stamp to sender file name
We have a scenario in which we are only passing the file using IC.
We need to pass the same file name from sender and add extension(.txt or .xml) along with timestamp.
If sender file name is pain001.ir8.003, It has to come with time stamp and extension.
I have used ASMA and add time stamp in channel, but that ll give the file name as "pain001.ir820150107_129403_222431.003" and ll not add extension.
I have two way to do it.:
1. Add mapping to this scenario and use dynamic mapping
2. write unix code to add extension before the channel picks the file.
Both of the above method will make the scenario complex. Is there any other way around.
Is it possible to do it with IC?
Please share your thoughts.