FlowDefinition
@forge/monorepo / backend/src / FlowDefinition
Type Alias: FlowDefinition
FlowDefinition =
object
Defined in: backend/src/flows/index.ts:166
Properties
budget
readonlybudget:FlowBudget
Defined in: backend/src/flows/index.ts:174
description?
readonlyoptionaldescription?:string
Defined in: backend/src/flows/index.ts:171
id
readonlyid:string
Defined in: backend/src/flows/index.ts:167
maxDepth?
readonlyoptionalmaxDepth?:number
Defined in: backend/src/flows/index.ts:183
How deep a subflow or a team may nest.
Enforced rather than documented, and it is what makes A → B → A terminate: each level carries its depth, and a step that would exceed the bound fails the flow with a message naming the chain. A cycle detector over the definition graph would not be enough, because a subflow reference is resolved at run time and the graph is only known then.
name
readonlyname:string
Defined in: backend/src/flows/index.ts:170
start
readonlystart:string
Defined in: backend/src/flows/index.ts:173
steps
readonlysteps: readonlyFlowStep[]
Defined in: backend/src/flows/index.ts:172
version
readonlyversion:number
Defined in: backend/src/flows/index.ts:169
Immutable per version. An execution pins one and reads it forever — see the module comment.