Class WorkflowInstanceRecord
A workflow instance as persisted by a provider. The engine (0.3) checkpoints progress by replacing the record under optimistic concurrency (Revision).
public sealed record WorkflowInstanceRecord : IEquatable<WorkflowInstanceRecord>
- Inheritance
-
WorkflowInstanceRecord
- Implements
- Inherited Members
Properties
- CreatedAt
When the instance was started.
- CursorJson
Engine cursor state (graph positions); null before the first checkpoint. Same JSON-document semantics as DataJson.
- DataJson
The serialized
TDatadocument. This is a JSON document, not an opaque string: providers may store it in a native JSON column (jsonb etc.) and must preserve semantic content — lexical formatting (whitespace, object key order) need not survive.
- DefinitionId
Which workflow this is an instance of.
- DefinitionVersion
The definition version this instance is pinned to.
- Id
Engine-generated identity; opaque to providers, which never mint or order by it.
- Revision
Optimistic concurrency token.
CreateInstanceAsyncstores 1; each successfulUpdateInstanceAsync(expectedRevision)storesexpectedRevision + 1.
- State
Where the instance is in its lifecycle.
- TenantId
The owning tenant, or null.
- UpdatedAt
When the instance was last checkpointed.