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

Function createEnvironmentObject

apps/sim/lib/logs/execution/logging-factory.ts:27–41  ·  view source on GitHub ↗
(
  workflowId: string,
  executionId: string,
  userId?: string,
  workspaceId?: string,
  variables?: Record<string, string>
)

Source from the content-addressed store, hash-verified

25}
26
27export function createEnvironmentObject(
28 workflowId: string,
29 executionId: string,
30 userId?: string,
31 workspaceId?: string,
32 variables?: Record<string, string>
33): ExecutionEnvironment {
34 return {
35 variables: variables || {},
36 workflowId,
37 executionId,
38 userId: userId || '',
39 workspaceId: workspaceId || '',
40 }
41}
42
43export async function loadWorkflowStateForExecution(workflowId: string): Promise<WorkflowState> {
44 const [normalizedData, workflowRecord] = await Promise.all([

Callers 3

startMethod · 0.90
safeStartMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected