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

Method validateSubflowsBeforeExecution

apps/sim/serializer/index.ts:186–193  ·  view source on GitHub ↗

* Validate loop and parallel subflows for required inputs when running in "each/collection" modes

(
    blocks: Record<string, BlockState>,
    loops: Record<string, Loop>,
    parallels: Record<string, Parallel>
  )

Source from the content-addressed store, hash-verified

184 * Validate loop and parallel subflows for required inputs when running in "each/collection" modes
185 */
186 private validateSubflowsBeforeExecution(
187 blocks: Record<string, BlockState>,
188 loops: Record<string, Loop>,
189 parallels: Record<string, Parallel>
190 ): void {
191 // Note: Empty collections in forEach loops and parallel collection mode are handled gracefully
192 // at runtime - the loop/parallel will simply be skipped. No build-time validation needed.
193 }
194
195 private serializeBlock(
196 block: BlockState,

Callers 1

serializeWorkflowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected