Created on 12-26-2018 03:40 AM - edited 08-17-2019 03:40 PM
Hello, I use a counter in my stream with the publish name, however, I need to clear this counter after sending the trailler to rabbitmq. Please, what is the best way to do this procedure by Nifi? The portion of the stream is in the attached image.
Created 12-31-2018 08:06 AM
Hi @Julio Gazeta
please take a look at this code sample using-counters-in-apache-nifi
"
The best way to define and update counters is to use ExecuteScript processor with the following piece of Groovy code: