(options: WorkflowFactoryOptions = {})
| 26 | * ``` |
| 27 | */ |
| 28 | export 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. |
no outgoing calls
no test coverage detected