FlowExecution
@forge/monorepo / backend/src / FlowExecution
Type Alias: FlowExecution
FlowExecution =
object
Defined in: backend/src/flows/index.ts:254
Properties
attempt
readonlyattempt:number
Defined in: backend/src/flows/index.ts:277
Attempts for the current step, so a retry policy survives a restart.
conversationId?
readonlyoptionalconversationId?:ConversationId
Defined in: backend/src/flows/index.ts:263
currentStep
readonlycurrentStep:string|null
Defined in: backend/src/flows/index.ts:266
The step about to run, or the one being waited on. null once terminal.
depth
readonlydepth:number
Defined in: backend/src/flows/index.ts:278
detail?
readonlyoptionaldetail?:string
Defined in: backend/src/flows/index.ts:282
Why it stopped, when it stopped for a reason worth reading.
finishedAt?
readonlyoptionalfinishedAt?:string
Defined in: backend/src/flows/index.ts:280
flowId
readonlyflowId:string
Defined in: backend/src/flows/index.ts:257
flowVersion
readonlyflowVersion:number
Defined in: backend/src/flows/index.ts:259
Pinned at start. The definition is read at this version for the execution's whole life.
history
readonlyhistory: readonlyStepRecord[]
Defined in: backend/src/flows/index.ts:275
id
readonlyid:string
Defined in: backend/src/flows/index.ts:255
principalId
readonlyprincipalId:PrincipalId
Defined in: backend/src/flows/index.ts:262
runId
readonlyrunId:RunId
Defined in: backend/src/flows/index.ts:261
The platform run this execution is, so quotas, usage and events apply as they do to any run.
spend
readonlyspend:FlowSpend
Defined in: backend/src/flows/index.ts:274
startedAt
readonlystartedAt:string
Defined in: backend/src/flows/index.ts:279
state
readonlystate:Readonly<Record<string,unknown>>
Defined in: backend/src/flows/index.ts:273
State between steps, durable, and readable by a person — #187 AC-3.
A flat JSON object rather than an opaque blob, because "what state is this flow in" is a question someone asks while it is stuck, and an answer they cannot read is not an answer.
status
readonlystatus:FlowStatus
Defined in: backend/src/flows/index.ts:264
tenantId
readonlytenantId:TenantId
Defined in: backend/src/flows/index.ts:256
waitingFor?
readonlyoptionalwaitingFor?: {interactionId:string;kind:"human"; } | {kind:"signal";signal:string; } | {kind:"time";untilMs:number; } | {kind:"run";member?:string;runId:string; }
Defined in: backend/src/flows/index.ts:284
Set while waiting: the interaction a checkpoint is parked on, or the signal a wait needs.