Event history for the current invocation. Transient collection tracking events consumed, produced, and expected.
Event consumed in the last handler invocation
Service response events awaiting collection.
Keyed by the emitted event's ID (parent ID of responses).
Responses are collected when their parentid
matches a produced event's id
.
Collected events are passed to the handler via collectedEvents
parameter.
Events produced (with domain resolution) in the last invocation
ID of the event that initiated this workflow.
Root identifier for tracing the complete execution chain.
Used as parentid
for completion events to maintain lineage.
Parent orchestration subject for nested workflows.
Enables hierarchical orchestration where one workflow spawns sub-workflows. Completion events route back to this parent subject.
null
parentSubject$$
in initialization eventsCustom workflow state managed by the handler.
Accessible via the context
parameter in handlers and persisted between invocations.
Current workflow status.
Determines whether the workflow can process additional events:
'active'
: Workflow is running and accepts new events for processing'done'
: Workflow has completed (handler returned output
). No further events are processed.Unique identifier for the workflow instance. Serves as the key for state persistence in the memory store.
State structure persisted in memory for ArvoResumable workflows.
Extends base orchestration state with resumable-specific fields including event collection, workflow status tracking, and custom state management.