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

Function matchesWorkflowScope

apps/sim/lib/workspace-events/emitter.ts:75–78  ·  view source on GitHub ↗

Workflow-scope filter shared by all event kinds. Empty selection watches every workflow.

(config: SimSubscriptionConfig, sourceWorkflowId: string)

Source from the content-addressed store, hash-verified

73
74/** Workflow-scope filter shared by all event kinds. Empty selection watches every workflow. */
75function matchesWorkflowScope(config: SimSubscriptionConfig, sourceWorkflowId: string): boolean {
76 if (config.workflowIds.length === 0) return true
77 return config.workflowIds.includes(sourceWorkflowId)
78}
79
80/**
81 * Emits workspace events for a completed workflow execution.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected