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


Vtwin996
2011-07-28T15:23:05Z
I'm new to VC and trying to understand triggers.
We need to build a trigger that fires when 2 specific file arrive in a folder. They are being ftp'd to us by a client daily asyncronously (we have no control over when the files arrived) but we do expect them to arrive after a certain time - say 5am).
After both files have arrrived we need to start another step in VC to rename the files and start another batch process.
From looking at the definitiions for a file trigger only a single event can be watched for.
Thanks in advance.
Sponsor
Forum information
Support
2011-07-28T15:24:17Z
Please look at the file trigger tutorial here first. Then come back with questions that you may have:

http://www.visualcron.com/Tutorials.aspx 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Vtwin996
2011-07-28T15:41:58Z
Hendrik,
Thanks. I watched the tutorial, but again this is triggering on a single file being created in the folder being monitored. I want to trigger when 2 specific files have been created.
The only way that I can see to do this is to have 2 separate triggers, each one looking for a specific file. When that file is created, the trigger would create a user variable with a value of 'true'.
Then I could have a totaly separate trigger job that waits for the 2 user variables to be set to 'true'.
Is there a better way?
Thanks.
Support
2011-07-28T15:54:18Z
I think you are right about the best way is to use the User Variables. If you are sure that files come in order you can set it up like this:

1. Create a job with a file trigger
2. Add a Calculate Variable task that adds value 1 to the User Variable
3. Then add the Task that you want to do when you have 2 files ready.
4. Add a Condition to that new Task that checks if the Variable is = 2
5. Then add a Task after your Task that resets the Variable to 0.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Vtwin996
2011-07-28T15:59:50Z
Hendrik,
Thanks for the quick response. We will proceed accordingly.
Support
2012-07-16T10:06:00Z
Please test our new FTP Trigger:

http://www.visualcron.co....aspx?g=posts&t=2575 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top