Skip to main content

service/domain/workflow/project_eventsourcing

Api Code Documentation / Exports / service/domain/workflow/project_eventsourcing

Table of contents

Functions

Functions

newProjectFromEvent

newProjectFromEvent(ctx, project, event): Type<Project>

Returns a new project with the given event applied, or an error.

Parameters

NameType
ctxCtx
projectProject
eventBusinessEvent

Returns

Type<Project>

Defined in

src/service/domain/workflow/project_eventsourcing.ts:128


parseProjectFromSnapshot

parseProjectFromSnapshot(projectJson): Project

Parameters

NameType
projectJsonany

Returns

Project

Defined in

src/service/domain/workflow/project_eventsourcing.ts:268


sourceProjectFromSnapshot

sourceProjectFromSnapshot(ctx, events, withLog, projectJson?): Type<Project>

Parameters

NameType
ctxCtx
eventsBusinessEvent[]
withLogboolean
projectJson?any

Returns

Type<Project>

Defined in

src/service/domain/workflow/project_eventsourcing.ts:200


sourceProjects

sourceProjects(ctx, events, origin?): Object

deprecated

Parameters

NameType
ctxCtx
eventsBusinessEvent[]
origin?Map<string, Project>

Returns

Object

NameType
errorsError[]
projectsProject[]

Defined in

src/service/domain/workflow/project_eventsourcing.ts:22