( workflowId: string, executionId: string, userId?: string, workspaceId?: string, variables?: Record<string, string> )
| 25 | } |
| 26 | |
| 27 | export 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 | |
| 43 | export async function loadWorkflowStateForExecution(workflowId: string): Promise<WorkflowState> { |
| 44 | const [normalizedData, workflowRecord] = await Promise.all([ |
no outgoing calls
no test coverage detected