Question
I set a file event job to monitor multiple files using wild cards.
If multiple files are created, deleted, or changed in an interval for checking files and the job is started for those files at the same time, is it possible to control the order of the files to be processed by the job?
Answer
HULFT Square does not have a function to control the order of files to be processed when job events are started simultaneously for the files.
Also, due to the Java specification HULFT Square using, it is not guaranteed that the processing will be done in a specific order in such cases.
Workaround
If you want to execute processing in the order of file names, you can achieve that by creating a script that implements the following procedure and executing the script at intervals with a schedule job.
- Execute Get List of File Names operation with Sort File Name List enabled.
- Execute subsequent processes using the list of file names obtained in Step 1.
- Move the processed files to another folder or delete them so that they will not be processed again.
Schedule Jobs
https://www.hulft.com/help/en-us/HULFTSquare/Content/HULFT_Square/HS_Jobs/jobs_Schedule.htm
Get List of File Names
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/file_list_file.htm
Comments
0 comments
Article is closed for comments.