Support Questions
Find answers, ask questions, and share your expertise

Find Provenance Data For Flowfile Within a Processor

New Contributor

I am attempting to develop a NiFi processor that would extend the functionality of the built-in processor "Monitor Activity".

The problem I am attempting to solve is that in my application, I would have multiple flows entering the processor, with the processor alerting by email when no flowfiles arrive within a certain time period. However, if only one of the flows stop, no alert will be triggered.

I would like to modify the processor such that it would be able to distinguish between the different flows and alert accordingly.

In order to do this, I would need a way to deferentiate between flowfiles originating from one processor and another. I am aware NiFi keeps detailed provenance records that can be easily accessed from within the GUI interface but I'm unable to find an easy way of accessing this information programmatically from within processor code.