Interface IWorkflowStore

Interface implemented by persistence layers capable of storing workflow state.

interface IWorkflowStore {
    createInstance(data, initialTasks): Promise<WorkflowInstance>;
    getInstance(workflowId): Promise<null | WorkflowInstance>;
    updateInstance(workflowId, patch): Promise<null | WorkflowInstance>;
    updateTasks(workflowId, updates): Promise<null | WorkflowInstance>;
    appendEvents(events): Promise<void>;
    listInstances(options?): Promise<WorkflowInstance[]>;
    buildProgressUpdate(workflowId, sinceTimestamp?): Promise<null | WorkflowProgressUpdate>;
}

Implemented by

Methods