MCPcopy
hub / github.com/simstudioai/sim / constructor

Method constructor

apps/sim/executor/execution/executor.ts:70–84  ·  view source on GitHub ↗
(options: DAGExecutorOptions)

Source from the content-addressed store, hash-verified

68 private execLogger: Logger
69
70 constructor(options: DAGExecutorOptions) {
71 this.workflow = options.workflow
72 this.environmentVariables = normalizeStringRecord(options.envVarValues)
73 this.workflowInput = options.workflowInput ?? {}
74 this.workflowVariables = normalizeWorkflowVariables(options.workflowVariables)
75 this.contextExtensions = options.contextExtensions ?? {}
76 this.dagBuilder = new DAGBuilder()
77 this.execLogger = logger.withMetadata({
78 workflowId: this.contextExtensions.metadata?.workflowId,
79 workspaceId: this.contextExtensions.workspaceId,
80 executionId: this.contextExtensions.executionId,
81 userId: this.contextExtensions.userId,
82 requestId: this.contextExtensions.metadata?.requestId,
83 })
84 }
85
86 async execute(workflowId: string, triggerBlockId?: string): Promise<ExecutionResult> {
87 const savedIncomingEdges = this.contextExtensions.dagIncomingEdges

Callers

nothing calls this directly

Calls 3

normalizeStringRecordFunction · 0.90
withMetadataMethod · 0.45

Tested by

no test coverage detected