Skip to content

traceSubsystemFlow

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/techdocs/subsystem-flow.ts

Walk outward from the entry point that reaches furthest.

Furthest rather than first: a subsystem usually declares several controllers and most of them bottom out immediately, so taking the first would describe the shallowest path in the subsystem and call it the flow. Depth wins, and total reach breaks ties.

Signature

ts
function traceSubsystemFlow(entryPoints: Entity[], entities: Entity[], relationships: Relationship[]): SubsystemFlow | undefined

Parameters

NameType
entryPointsEntity[]
entitiesEntity[]
relationshipsRelationship[]

Returns: SubsystemFlow | undefined

Was this page helpful?

Download as PDF