Skip to main content
Base for the state a client can set. Annotate a subclass on your model as state: and every public field becomes a set_<field> command. A field whose name starts with an underscore is private: no command is generated and the client never sees it.
The runtime builds a fresh instance from the defaults when a session starts and drops it when the session ends. See Managing State.