How can I trigger GetFile processor when new files are created in another directory. I have two flows and want to start the second flow only when the first flow have created a file in directory not watched by the GetFile from the second flow.
The below might be helpful as an approach. In the example, groovy is used to dynamically update properties in NiFi using the rest API.
In the first flow, you could have an executeProcessorScript (after files been created in directory) that runs a groovy/python script to start your 2nd flow.
Hi @Darek Krysmann,
Perhaps I am missing something but why not use a GetFile processor with KeepSourceFile enabled to trigger the second flow? Seems like that would achieve the desired functionality.
Do you necessarily need to trigger another GetFile? If you comment here with your specific use case then I can help further.