Skip to content

MemoryFlowDefinitionsStore

Immutable versioned catalog of flow definitions.

Publishing is two steps: createVersion inserts a row and does not change the active pointer; setActive(name, version.versionId) is what publishes. status and digest are server-computed — callers cannot supply them. authorId is stored metadata, never an authorization check.

new MemoryFlowDefinitionsStore(): MemoryFlowDefinitionsStore;

MemoryFlowDefinitionsStore

archive(name): Promise<void>;
Parameter Type

name

string

Promise<void>

FlowDefinitionsStore.archive


createVersion(def, options?): Promise<FlowDefinitionVersion>;
Parameter Type

def

FlowDefinition

options?

CreateVersionOptions

Promise<FlowDefinitionVersion>

FlowDefinitionsStore.createVersion


getActive(name): Promise<
| FlowDefinitionVersion
| null>;
Parameter Type

name

string

Promise< | FlowDefinitionVersion | null>

FlowDefinitionsStore.getActive


getVersion(versionId): Promise<
| FlowDefinitionVersion
| null>;
Parameter Type

versionId

string

Promise< | FlowDefinitionVersion | null>

FlowDefinitionsStore.getVersion


list(filter?): Promise<FlowDefinitionVersion[]>;
Parameter Type

filter?

FlowDefinitionListFilter

Promise<FlowDefinitionVersion[]>

FlowDefinitionsStore.list


setActive(name, versionId): Promise<FlowDefinitionVersion>;
Parameter Type

name

string

versionId

string

Promise<FlowDefinitionVersion>

FlowDefinitionsStore.setActive