cancel
Showing results for 
Search instead for 
Did you mean: 

Sender file adapter to pick one file for every 3 mintues

santhosh_sontha2
Explorer
0 Kudos

Dear All,

I have requirement where soruce system puts multiple files in one folder and PI sender file adapter should pick one file(any order) at a time with a delay of 3 minutes each. This delay is because of traget system which can accept one file at a time with a delay of 3 mintues between each file. Any suggestions on this will be highly appreciated.

Since order is not important to us can we acheive this with EO?

Regards,

Santhosh

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

you can try setting advance mode parameter >Msecs to Wait Before Modification Check. It will work only for File adapter >NFS.

AlexanderApel
Participant
0 Kudos

Hi Santhosh,

use a temp directory and a batchfile in Operation System Commands before Processing.

So you can only copy the first file from you´re temp directory into your source directory and set polling to 180 sec.

Regards,

Alex

azharshaikh
Active Contributor
0 Kudos

Hi Santhosh,

Can you try to configure the Sender CC as mentioned in the following link and check (with solution N°1):

Regards,

Azhar

suman_saha
Contributor
0 Kudos

Hi,

You can set polling time as 180.

Suman

santhosh_sontha2
Explorer
0 Kudos

Dear Suman,

Polling with pick all files at once after 180 secss. My requirement is to pick one by one with a delay of 180 secs between each file.

Regards,

Santhosh

suman_saha
Contributor
0 Kudos

Hi,

If its only about the target system,you can add delay in mapping also. The sender channel will pick up files normally and mapping will delay the processing to send to the target system.

You can implement the following udf in parent node:

{ try

   {           Thread.sleep (180000);

    }

catch (InterruptedException ie){}

return a;

}

suman_saha
Contributor
0 Kudos

useful link:

anandvithal
Active Participant
0 Kudos

Hi Santhosh,

Use sleep command in sender file channel in Run Operating System Command After Message Processing

This works for PI systems on unix OS. There is a similar command for windows OS also.

Thanks,

Anand