Setting Initial Value of Stateful Variables in UpdateAttributes processor
This question has been asked before (here) but never answered so I'm hopeful that today is my lucky day and someone knows the answer. Because unfortunately, the documentation does not cover the topic.
In the UpdateAttribute there is an option to Store State of an attribute by setting the value to "Store state locally". But to do that I first need to set the "Stateful Variables Initial Value", but the documentation doesn't say how to do that, and everything I've tried fails. The documentation provides an example for referencing an existing attribute variable, theCount, but there is no mention of how to initialize this attribute variable.
I've attempted setting the initial value using:
- theCount=1
- {"theCount":1}
- ${theCount=1}
- 1
- ${setStateValue('theCount')} <- grasping at straws with this one
None of these work. When I look at the value of the attribute theCount it always just shows: "Empty string set".
I'm including a screen shot of my processor so you can see the configuration.

Also, including a screenshot of the Attributes tab showing the theCount attribute.






