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

Function createWorkflowState

packages/testing/src/factories/workflow.factory.ts:28–38  ·  view source on GitHub ↗
(options: WorkflowFactoryOptions = {})

Source from the content-addressed store, hash-verified

26 * ```
27 */
28export function createWorkflowState(options: WorkflowFactoryOptions = {}): any {
29 return {
30 blocks: options.blocks ?? {},
31 edges: options.edges ?? [],
32 loops: options.loops ?? {},
33 parallels: options.parallels ?? {},
34 lastSaved: options.lastSaved ?? Date.now(),
35 isDeployed: options.isDeployed ?? false,
36 variables: options.variables,
37 }
38}
39
40/**
41 * Creates a simple linear workflow with the specified number of blocks.

Callers 7

createWorkflowFunction · 0.90
compare.test.tsFile · 0.90
utils.test.tsFile · 0.90
createLinearWorkflowFunction · 0.70
createBranchingWorkflowFunction · 0.70
createLoopWorkflowFunction · 0.70
createParallelWorkflowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected