cancel
Showing results for 
Search instead for 
Did you mean: 

How to schedule CPI SFTP Sender with multiple on time triggered daily?

stephen_xue
Active Participant
0 Kudos

Hi,

I have a very normal requirement: the SFTP sender is to pickup files at 2pm and 7pm twice daily.

Whereas cannot find a straight way to schedule it in the adapter configuraiton. Do I need to create two iflows, one will be triggered at 2pm and the other will be triggered at 7pm daily? it looks a bit ugly.

Regards,

View Entire Topic
kc_kristris
Active Participant
0 Kudos

Hello Stephen,

The solution provided by Sriprasad (above) to tweak the i-flow looks good.

I have one more solution to this, just in case if "you are not deleting the file" from your SFTP after polling the file.

1. Hold the execution time in a property parameter ${date:now:yyyy-MM-dd'T'HH:mm:ss}

2. Using router (condition -> if time = 2 PM or 4PM) you can continue the processing

3. Schedule your i-flow for every 2 Hrs.

Just a thought to handle this case...

Regards,

Kris

stephen_xue
Active Participant

thanks Kris for your proposal.