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

Function getWorkflows

apps/sim/hooks/queries/utils/workflow-cache.ts:10–18  ·  view source on GitHub ↗
(
  workspaceId: string,
  scope: WorkflowQueryScope = 'active'
)

Source from the content-addressed store, hash-verified

8 * Reads workflow metadata for a workspace directly from the React Query cache.
9 */
10export function getWorkflows(
11 workspaceId: string,
12 scope: WorkflowQueryScope = 'active'
13): WorkflowMetadata[] {
14 return (
15 getQueryClient().getQueryData<WorkflowMetadata[]>(workflowKeys.list(workspaceId, scope)) ??
16 EMPTY_WORKFLOWS
17 )
18}
19
20/**
21 * Reads a single workflow by id from the React Query cache.

Callers 15

getWorkflowWithValuesFunction · 0.90
ensureWorkflowInRegistryFunction · 0.90
buildDragResourcesFunction · 0.90
WorkflowItemFunction · 0.90
FolderItemFunction · 0.90
useDragDropFunction · 0.90
useWorkflowExecutionFunction · 0.90
useDuplicateSelectionFunction · 0.90
useDuplicateWorkflowFunction · 0.90
useExportWorkflowFunction · 0.90
useExportSelectionFunction · 0.90
useCreateWorkflowFunction · 0.90

Calls 1

getQueryClientFunction · 0.90

Tested by

no test coverage detected