Create file trigger and large files - VisualCron - Forum

Community forum

vistisen
2012-02-23T11:03:33Z
Hi I have a quick question about using create file triggers. I have an application that usings java to create files. I have observerd that files are created, and then written to as the java program generates content. How can I be sure that the java kode is finished and the file is closed before the create trigger fires and starts to copy it?
Sponsor
Forum information
Support
2012-02-23T12:34:41Z
Maybe you should not use the File Trigger if there are several files - instead, you could use the Process Trigger to check for exit of that specific process.

Or you could alter the java code to write to another folder when complete - and then you can use the file trigger to monitor that other folder.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vistisen
2012-02-23T12:42:37Z
Sory , I have not made myself clear there is one one file per job but from the point of creation to the time when the file is finished can be several minutes long
Support
2012-02-23T12:45:16Z
By default you have an option in the File trigger called "Trigger when file is released". This means, as long as the file is writing it won't trigger - it will wait until completion.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vistisen
2012-02-23T12:50:19Z
Thank you, I hoped it worked like that, but since the files contain bank transfers for millions, I did't really want to try it out without knowing for certain (even in test as the clearing up would be horrible if it went wrong)
Support
2012-02-23T12:51:29Z
😁 I hope you have test environment. Hint. Hint.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top