(state: ExecutionState)
| 39 | } |
| 40 | |
| 41 | function createContext(state: ExecutionState): ExecutionContext { |
| 42 | return { |
| 43 | workflowId: 'workflow-1', |
| 44 | workspaceId: 'workspace-1', |
| 45 | executionId: 'execution-1', |
| 46 | userId: 'user-1', |
| 47 | blockStates: state.getBlockStates(), |
| 48 | blockLogs: [], |
| 49 | metadata: { requestId: 'request-1', duration: 0 }, |
| 50 | environmentVariables: {}, |
| 51 | workflowVariables: {}, |
| 52 | decisions: { router: new Map(), condition: new Map() }, |
| 53 | loopExecutions: new Map(), |
| 54 | executedBlocks: new Set(), |
| 55 | activeExecutionPath: new Set(), |
| 56 | completedLoops: new Set(), |
| 57 | } as ExecutionContext |
| 58 | } |
| 59 | |
| 60 | function createNode(block: SerializedBlock): DAGNode { |
| 61 | return { |
no test coverage detected