ChainGraph API Documentation / @badaitech/chaingraph-types / FlowPorts
Interface: FlowPorts
Defined in: packages/chaingraph-types/src/node/types.ts:45
Type definition for the default node flow ports. Default flow ports include:
- flowIn: boolean (default: true) - Indicates whether the node should be executed
- flowOut: boolean (default: true) - Indicates whether execution was successful
- error: boolean (default: false) - Indicates whether the node execution failed
- errorMessage: string (default: "") - Contains error messages when execution fails
When flow ports are disabled, the node won't appear in the flow visualization and will execute automatically by default. When auto-execution is disabled, the node requires manual triggering.
Properties
disabledAutoExecution?
optionaldisabledAutoExecution:boolean
Defined in: packages/chaingraph-types/src/node/types.ts:54
disabledAutoExecution - boolean, false by default. Indicates flag if the node auto execution is disabled
disabledError?
optionaldisabledError:boolean
Defined in: packages/chaingraph-types/src/node/types.ts:59
disabledError - boolean, false by default. Indicates flag if the node error ports are disabled
disabledFlowPorts?
optionaldisabledFlowPorts:boolean
Defined in: packages/chaingraph-types/src/node/types.ts:49
disabledFlowPorts - boolean, false by default. Indicates flag if the flow ports are disabled
portsConfig?
optionalportsConfig:object
Defined in: packages/chaingraph-types/src/node/types.ts:64
portsConfig - Optional configuration for each system port
error?
optionalerror:object
error.id?
optionalid:string
error.value?
optionalvalue:boolean
errorMessage?
optionalerrorMessage:object
errorMessage.id?
optionalid:string
errorMessage.value?
optionalvalue:string
flowIn?
optionalflowIn:object
flowIn.id?
optionalid:string
flowIn.value?
optionalvalue:boolean
flowOut?
optionalflowOut:object
flowOut.id?
optionalid:string
flowOut.value?
optionalvalue:boolean