Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


cstump
2010-05-05T16:35:18Z
Hi all,

We have a 3rd party vendor who has a process for receiving data requests and sending data responses via FTP. I have briefly described the scenario below. I am trying to figure out a simple way to address this using VisualCron.

Scenario:

1) We FTP a "request" to the vendor. The "request" is just a text file with a payload that meets the vendor's specifications.

2) The vendor picks up the request, processes it, and prepares an output file.

3) When the processing is complete, the vendor places a file on the FTP server that acts as a signal that the request has been completed and that we can now pick up the actual results file. Basically a semaphore file.

What we need to do is "poll" the FTP server looking for this semaphore file and, if we see it, then FTP download the results file as well as the semaphore file. There is some cleanup we do afterward as well.

I am trying to think of a way to implement this logic in VisualCron.

The FTP task does not generate an error if I try to download a file that does not exist, so that crude approach for detecting the presence/absence of the file is out.

There is no easy way to get the FTP LIST command output and parse it that I can think of.

I could do something crude like this:
1) Attempt to FTP download the file (call it foo.txt) to a specific location locally
2) Look for the the local copy of foo.txt.
3) If foo.txt exists locally, proceed with the download of the results file
4) If foo.txt does not exist, loop back to the first FTP task and attempt to download foo.txt again.

Any suggestions would be greatly appreciated.

Thanks,

Chuck


Sponsor
Forum information
Support
2010-05-06T11:37:13Z
Hi Chuck,

we have not yet implemented that an error can be raised if no files were downloaded. However, in the later beta version which have result properties of the FTP Task to tell how many files were downloaded.

You could create a FTP Task that tries to download this semaphore file. Then create Tasks after that that do the other things. On the first Task after the FTP Task you add a Condition to check the Variable value of number of downloaded files. This Task, maybe, should go up and delete that file so it is not there the next time. Then continue with what you need to do.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2010-05-06T15:39:51Z
Thanks for the fast response!

I like the idea of checking the result properties on the FTP. I will experiment with the Beta. What is your rough estimate when this feature will be generally available (i.e. out of Beta)?

Thanks,

Chuck
Support
2010-05-06T15:40:20Z
In a week or two.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2010-05-06T15:41:15Z
Awesome.....thansk again.

Chuck
cstump
2010-05-25T21:53:00Z
Hi,

I am trying to implement this task we previously discussed in this thread, but I cannot find the FTP results properties that you mentioned. I am using 5.6.0. I am probably just looking in the wrong place.

Help please!

Chuck
cstump
2010-05-25T22:03:54Z
Ignore the last post. I was looking in the wrong place.

Chuck
Scroll to Top