Nifi clear state
Is there a way to clear the state of a processor using another processor or groovy scripting (in an ExecuteStateProcessor) ?
The goal is to reset the state of a ScrollElasticSearchHttp processor to be able to run it more than once.
Important. I don't want do it manually using the UI ("state management" then "clear state", as it is explained in https://community.hortonworks.com/questions/64405/nifi-clear-state.html)
I want this operation be done after a scroll execution.
Refer the nifi doc : https://help.syncfusion.com/data-integration/processors/scrollelasticsearchhttp
...Scrolls through an Elasticsearch query using the specified connection properties. This processor is intended to be run on the primary node, and is designed for scrolling through huge result sets, as in the case of a reindex. The state must be cleared before another query can be run.
...
But how do that ?
Thanks by advance.

