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:125


sourceProjects#

sourceProjects(ctx, events, origin?): Object

Parameters#

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

Returns#

Object

NameType
errorsError[]
projectsProject[]

Defined in#

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