MCPcopy Index your code
hub / github.com/simstudioai/sim / validateSubflowStructure

Method validateSubflowStructure

apps/sim/executor/dag/builder.ts:137–144  ·  view source on GitHub ↗

* Validates that loops and parallels have proper internal structure. * Throws an error if a loop/parallel has no blocks inside or no connections from start.

(dag: DAG)

Source from the content-addressed store, hash-verified

135 * Throws an error if a loop/parallel has no blocks inside or no connections from start.
136 */
137 private validateSubflowStructure(dag: DAG): void {
138 for (const [id, config] of dag.loopConfigs) {
139 this.validateSubflow(dag, id, config.nodes, 'Loop')
140 }
141 for (const [id, config] of dag.parallelConfigs) {
142 this.validateSubflow(dag, id, config.nodes, 'Parallel')
143 }
144 }
145
146 private validateSubflow(
147 dag: DAG,

Callers 1

buildMethod · 0.95

Calls 1

validateSubflowMethod · 0.95

Tested by

no test coverage detected