How to enable "View State" option for ExecuteScript processor in NiFi UI?
<p>I am using NiFi <strong>ExecuteScript</strong> with python. In the python script I add/modify state of the processor</p>

<pre><code>stateManager = context.getStateManager()
stateManager.setState(newmap, Scope.LOCAL)
</code></pre>

<p>Is there anyway I can view/clear the processor state in NiFi web ui? </p>

<p>Some other processors like <strong>TailFile</strong> give you this option via <em>"view state"</em> when you right click on the processor but ExecuteScript right click does not give you this option</p>

<p>Most processors that store state have an annotation on them @Stateful which indicates to the framework that they store state, and is used to enabled features such as the "View State". </p>

<p>Since ExecuteScript doesn't store state itself it doesn't currently have this annotation, but since scripts can access the state manager and store state we should add the annotation so that View State works. I created this JIRA:</p>

<p><a href="https://issues.apache.org/jira/browse/NIFI-2885" rel="nofollow">https://issues.apache.org/jira/browse/NIFI-2885</a></p>

python state apache-nifi