Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering the batch job with file arrival

Former Member
0 Kudos

Hi All,

In one of the scenarios, a job used to get triggered as soon as a file used to arrive a given location.

Now due to business change, two files will come to the same path(different file names).

Please assist me how can we trigger the job only if both the files are in place.

We will not come to know the order in which the files will arrive.

thanks

1 REPLY 1

Former Member
0 Kudos

I am not sure how you have setup the batch job to be triggered immediately once a file is received (normally we have batch jobs running every 5 mins to check the files in a folder).

I think you should enhance the file processing program to see if we have two files in the directory or not, it should stop processing if both the files are not available.

and this program can be setup as a batch job in every 5 / 10 mins ..

Thanks