Lock or rename file when actively writing to file
We are using file target to move data into a system that PI Integrator does not support writing to directly. We have a script that moves the files PI Integrator creates to our other system, but we need a way to tell when the Integrator has finished writing to that file. The Integrator should either lock the file it is writing to or have a processing naming pattern similar to UFL.
PI Integrator uses paging to export the data into csv files. When a big amount of rows are written into a file, this write operation is performed in batches.
If we have another application moving those PI Integrator generated csv files, this can result on the application moving files that have not been completed.
Is it possible for the Integrator to Lock the files until they are fully written and\or save the temporary csv file in a different location from the final one?