ReadonlyattemptOne-based handler retry attempt number.
ReadonlycancellationSignal aborted when Dex cancels the active Worker call.
Pass it to abort-aware APIs or inspect it at natural CPU-work boundaries. JavaScript cannot forcibly stop synchronous code, and cancellation cannot make external effects atomic.
ReadonlydeadlineAbsolute UTC deadline of the current Step method attempt, or undefined when absent.
Available during waitFor, execute, and Flow timeout handlers. RPC handlers have no
deadline. A shorter remaining RetryPolicy total duration limits this value. Each retry
receives its own effective deadline. Dates have millisecond precision.
ReadonlyfirstUTC timestamp of the first handler attempt.
ReadonlyflowStable application Flow ID shared across runs.
ReadonlyflowUTC timestamp at which the current Flow run started.
ReadonlyfromPredecessor Step execution ID, or an empty string at Flow start.
ReadonlyrecoveryFinal failure that selected this recovery path, or undefined when absent.
ReadonlyrunCurrent server-assigned run ID.
ReadonlystepCurrent Step type and execution number encoded by Dex.
Returns effective decoded AttributeMap keys in ascending order.
Registered AttributeMap definition.
Keys visible after decision-local writes and deletions.
Returns decoded non-empty ChannelMap keys in ascending order during an RPC.
Registered ChannelMap definition.
Keys including publications buffered by the current RPC.
Returns values selected by the satisfied Channel condition.
Channel element type.
Registered singleton or map definition.
Optionalinstance: stringRequired ChannelMap instance; omitted for a singleton.
Ordered values for this Step execution.
Returns a Channel's current queued value count.
Registered singleton or map definition.
Optionalinstance: stringRequired ChannelMap instance; omitted for a singleton.
Non-negative queued value count.
Stages deletion of an Attribute value.
Registered singleton or map definition.
Optionalinstance: stringRequired AttributeMap instance; omitted for a singleton.
Stages deletion of one pending Channel message from an RPC handler.
Registered singleton or map definition.
Non-empty server-assigned message ID.
Optionalinstance: stringRequired ChannelMap instance; omitted for a singleton.
Reads a typed Attribute from decision state.
Attribute value type.
Registered singleton or map definition.
Optionalinstance: stringRequired AttributeMap instance; omitted for a singleton.
The decoded current value.
Decodes heartbeat details recorded by the previous regular-activity attempt.
The codec must match the one passed to AsyncContext.recordHeartbeat. When omitted,
values use JSON encoding. Call Context.hasLastHeartbeatValue to distinguish an absent
Value from a present null value, because both decode to undefined.
Expected heartbeat value type.
The decoded value, or undefined when no Value is present.
Reports whether a previous regular-activity attempt recorded heartbeat details.
Whether a last heartbeat Value is present.
Reports whether a Timer made the current Wait ready.
Optionalindex: numberOptional zero-based Timer index; checks any Timer when omitted.
Whether the selected Timer fired.
Returns loaded pending Channel messages in FIFO order.
Channel element type.
Registered singleton or map definition selected by the RPC.
Optionalinstance: stringRequired ChannelMap instance; omitted for a singleton.
Immutable pending message IDs and decoded values.
Stages one typed Channel publication.
Channel element type.
Registered singleton or map definition.
Value to append.
Optionalinstance: stringRequired ChannelMap instance; omitted for a singleton.
Records heartbeat progress for the current Step method attempt.
Passing undefined explicitly clears persisted heartbeat details. Every other value produces
a present Value; omitted codecs use JSON. The Promise resolves when grpc-js accepts the frame,
not when Temporal persists it. Local activities ignore heartbeat frames.
Heartbeat value type.
A Promise resolved after the Worker accepts the output frame locally. All failures reject this Promise; this method never throws synchronously.
Stages an Attribute write in the current decision.
Attribute value type.
Registered singleton or map definition.
Typed value to persist.
Optionalinstance: stringRequired AttributeMap instance; omitted for a singleton.
Reports whether waitFor failed before the current execute call.
Whether failure policy proceeded to execution.
Adds asynchronous progress reporting to a Step invocation Context.
Annotate an async
waitFor,execute, or Flow timeout handler with AsyncContext when it records heartbeats. RPC handlers receive Context and cannot record heartbeats.