Jump to content
The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now! See more information here ×

TIBCO BW process - Rename a file on SFTP server


m k 2

Recommended Posts

Hi,

 

I am using TIBCO BW 5.14

Every Friday at 1:00pm, files xyz.txt comes on SFTP server at this location /opt/remoteFile/

I would like to write a tibco bw process which polls that file location on Friday between 9:00pm and 10:00pm and look for that xyz.txt file and rename that file to xyzyyyyMMdd.

yyyyMMdd will be current date on that Friday. so this will be flow

 

FilePoller--->SFTPRename activity--->SFTP Close connection activity--->END

 

I look for activites in TIBCO designer.. i can't use FilePoller because it looks for files on a server where TIBCO BW apps is deployed.

can someone guide me on this please

Thanks

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Hi,

 

We have an option by using the timer activity, based on the requirement we should configure the time interval for the timer to execute which will lists the files using SFTPDir activity. If we find the file created in between 9-10, then we can invoke the SFTPRenameFile activity, It wont be as accurate as file poller but it works as an alternative to that. To be more accurate we can configure the time interval in timer activity in seconds.

 

Hope this helps!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...