Support Questions

Find answers, ask questions, and share your expertise

How do I get the Component state of a processor say QueryDatabaseTables processor

New Contributor

I am using ‘QueryDatabaseTable’ processor to get records from database table, its using date as maximum-value column for state.I wanted to get the state value (date) that is shown on the UI. Component state can be found on QueryDatabaseTable->view state. I would like to retrieve the date value that "viewState" shows on the UI using the nipyapi.

Is there a function available to get the value


Super Guru

@Ash C

You can use NiFi RestAPI to get the state of the processor.

Sample Rest api call:

curl -i -X GET http://<host>:<port>/nifi-api/processors/<processor-id>/state