How to skip /cancel a file event based on variable

Discussion created by Ezekiel_Gable_1177 on May 25, 2017
Latest reply on May 25, 2017 by Pete Wirfs

Sometimes, in order to make a batch more flexible we'll design our jobs to check a variable object to see if they should run as normal or exit and complete clean. This gives us the ability, foe example, to turn of file transmissions to outside clients when testing batch.

I want to do this sort of thing for incoming files as well- effectively skip or cancel the file events/jobs associated with a particular feed by simply changing a variable object.

When I try to do this with file events however, it doesn't work. It can read the variables just fine, but when use the ":exit 0" command UC4 says I did an exit, but the object keeps running. 

How would you guys go about handling this sort of thing?