Key characteristics
State is only available for Virtual Objects and Workflows. Scope & retention:- For Virtual Objects: State is scoped per object key and retained indefinitely. It is persisted and shared across all invocations for that object until explicitly cleared.
- For Workflows: State is scoped per workflow execution (workflow ID) and retained only for the duration of the workflow’s configured retention time.
- Exclusive handlers (e.g.,
run()in workflows) can read and write state. - Shared handlers can only read state and cannot mutate it.