I am trying to read the error from bulletin board using InvokeHttp processor for a specific flowfile. But i am not able to get the error which is generated for a flowfile as it gives either all errors or error belonging to a processGroup(using rest-api to get processGroup id at root canvas for remote url ). The error has sourceId (id of processor generating error) and group id (id of ProcessGroup where error generating processor is located).
How can we get the sourceId(highlighted below) and ProcessGroup id as attribute with flowfile?
Is there any other way to read only that error which is being generated on bulletin-board for specific flowfile ?
Rather then trying use the invokeHTTP processor trying to fetch bulletins as they happen, I suggest you use the SiteToSiteBulletinReportingTask to send bulletins as they occur to a remote input port on your NiFi or another NiFi setup fro monitoring. You can then build a dataflow to filter and route the received bulletins as you desire.
The Site-to-Site Bulletin Reporting Task allows the user to publish Bulletin events using the Site To Site protocol. Note: only up to 5 bulletins are stored per component and up to 10 bulletins at controller level for a duration of up to 5 minutes. If this reporting task is not scheduled frequently enough some bulletins may not be sent.