cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Sender File adapter dynamically

Former Member
0 Kudos

Hi,

I need to configure the sender file adapter dynamically. Ex: I will be providing the src dir , file name etc dynamically. I think this is not possible using module because module gets executed after file is picked (in my case file dir and file names need to be determined dynamically). I even don't won't to use directory API for craeting my file sender comm channel. Is there any other way to achive this.

Regards,

Rakesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member192851
Active Participant
0 Kudos

>> I even don't won't to use directory API for craeting my file sender comm channel

So, variant with change Dynamic Configuration in Sender Channel with Java mapping or UDF - don't suit for you?

http://wiki.sdn.sap.com/wiki/display/XI/Dynamicfilenameforpass-through+scenario

anupam_ghosh2
Active Contributor
0 Kudos

Hi Rakesh,

what is the Operating system of the PI server? Could you please kindly explain what conditions determine filename and source directory? I do not think there is anyway you can determine src file and dir names dynamically in PI.

Here is what you can try.

PI server is on windows system u need batch file. If its on unix or Linux you need scripts. Now what you have to do is place all files in a directory. Here the script/batch file will run continuously in background. Once it gets files it will rename files based on file content or file name then move them in different directories as per your conditions. your interface must have multiple communication channels and sender agreement (with diffrent parties) which will pick up those files from these directories.

The name of directories will be fixed in each channel.

regards

Anupam

Former Member
0 Kudos

Yes... i think that this is the only way to achieve this issue (also considering the possibility to develope a custom module).

You can insert the Shell Script in Crontab (see crontab command) to schedule the script.