Pierre, Thanks for proposing this improvement to state handling, I am in favor of the proposal.
In many cases, Processors and Controller Services should retain complete control over the State Map, as they may expect multiple keys to exist based on previous invocations. In other cases, however, where the State Map is more of a collection of unique items, selective removal seems reasonable. Introducing the new property on the annotation provides a clear way for a component to declare the type of expected behavior, serving as a foundation for supported operations through the UI or REST API. Regards, David Handermann On Tue, Aug 5, 2025 at 1:46 PM Pierre Villard <pvill...@apache.org> wrote: > > Hi all, > > I just submitted a NIP [1] to discuss a feature proposal that would > introduce a backward compatible API change in order to support the > possibility for dropping individual keys in the component state. > Please check the JIRA for more details and feel free to comment there, > or on this thread, with your thoughts / feedback. > > [1] https://issues.apache.org/jira/browse/NIP-9 > > Thanks, > Pierre