Hi Vibhath, In your case, I'd consider using HandleHttpRequest <https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.HandleHttpRequest/index.html> / HandleHttpResponse <https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.HandleHttpResponse/index.html> instead of ListenHTTP. This will allow you to send an HTTP call to NiFi and wait for the processing to complete, before sending the HTTP response back to your script via HandleHttpResponse. This will be simple if your flow generates only one flowfile, since you can simply route this to HandleHttpResponse. If you have multiple flowfiles as output, you may have to use MergeContent after all the data has been extracted, so that you can send a single response. Or even better, if there's some way for you to know in the flow which is the last result, you could route only that flowfile to HandleHttpResponse.
Joe Gresock On Wed, May 19, 2021 at 7:32 AM Vibhath Ileperuma < vibhatharunapr...@gmail.com> wrote: > Hi all, > > I'm developing a NIFI flow to extract data in a database and write into > files.This flow starts with a ListenHttp processor. A python script sends a > list of table names required to be extracted to the port ListenHttp > processor is listening to. NIFI flow has been developed to iterate through > that list and extract the data in given tables. > > I would like to know whether there is a way to get a notification to the > python script once all the tables are extracted. > If it is not possible, is it possible to log a message informing all the > tables have been extracted. > > Thank You. > Best Regards, > Vibhath. >