A question about file triggers
Question 1A:
I have been working with File Triggers and in my testing I have found an
inconsistency when the Trigger Type is "OnFileCreated" and the "Check for
File Modification" box is checked. My issue is when the same file is dropped
again. It appears sometimes the file will trigger again and sometimes it
won't. I ran a test where I dropped the same file 5 times. It triggered on
the first 4 but on the 5th it stopped triggering. All 5 had the same "Date
Modified" time stamp. Once it stopped firing it stayed stuck regardless of
other files being processed by the same trigger entity. When I opened the
file and saved it, it triggered again. I guess my question is: what criteria
constitutes a file modification, is it the time stamp, size, or something
else?
Question 1B:
In working with the File Triggers I noticed that you can only select
OnFileCreated if you want to set a File Stable Time and insure file
stability before processing. Is there a reason why the File Stable Time is
not available with the "OnFileExsists" option?
We want to insure file stability before processing when a large file is
being created but not be restricted by the OnFileCreated selection which
blocks the same file name from being processed twice consecutively. Some of
our customers use the same file name everyday. Some of the files are large
and take time to be completely written to the drive (FTP Put Process).
-
Answer 1: Adeptia checks the last modified time of the file which constitutes last time when the file was modified. If the file last file modification time changes then file is considered as unstable. File stable time is calculated by substracting the current time from the last modified time of file and if it is greater than the file stable time then it will get triggered.
Answer 2: When we use “OnFileCreated” option in say file trigger then it will continuously check the defined file modification time. If the file is still unstable and read/write operation is getting performed then the event will not be triggered and it will be only triggered when the file gets stable.
Currently we do not support File stable time in “OnFileExists” and that is why you will notice that file stable time is disabled with this option. We will discuss this with our product engineering team and add this to the product backlog.
0
Post is closed for comments.
Comments
1 comment