Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / findBoundaryOutputEdges

Function: findBoundaryOutputEdges()

findBoundaryOutputEdges(flow, branchNodeIds): IEdge[]

Defined in: packages/fireflow-types/src/flow/execution/runtime/stream-bridge.ts:225

Find edges that cross OUT of a set of node IDs to outside (boundary outputs). These edges need their source port values transferred back to the parent via DBOS.setEvent/getEvent per edge.

Parameters

flow

IFlow

The flow containing all edges

branchNodeIds

Set<string>

Node IDs belonging to the branch

Returns

IEdge[]

Edges sorted by ID for deterministic ordering

Licensed under BUSL-1.1