Skip to content

FlowDefinitionsStore

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.

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

name

string

Promise<void>


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

def

FlowDefinition

options?

CreateVersionOptions

Promise<FlowDefinitionVersion>


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

name

string

Promise< | FlowDefinitionVersion | null>


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

versionId

string

Promise< | FlowDefinitionVersion | null>


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

filter?

FlowDefinitionListFilter

Promise<FlowDefinitionVersion[]>


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

name

string

versionId

string

Promise<FlowDefinitionVersion>