Skip to main content

service/domain/workflow/subproject_eventsourcing

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

Table of contents

Functions

Functions

newSubprojectFromEvent

newSubprojectFromEvent(ctx, subproject, event): Type<Subproject>

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

Parameters

NameType
ctxCtx
subprojectSubproject
eventBusinessEvent

Returns

Type<Subproject>

Defined in

src/service/domain/workflow/subproject_eventsourcing.ts:221


parseSubprojectFromSnapshot

parseSubprojectFromSnapshot(subprojectJson): Subproject

Parameters

NameType
subprojectJsonany

Returns

Subproject

Defined in

src/service/domain/workflow/subproject_eventsourcing.ts:90


sourceSubprojectFromSnapshot

sourceSubprojectFromSnapshot(ctx, events, withLog, subprojectJson?): Type<Subproject>

Parameters

NameType
ctxCtx
eventsBusinessEvent[]
withLogboolean
subprojectJson?any

Returns

Type<Subproject>

Defined in

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


sourceSubprojects

sourceSubprojects(ctx, events, origin?): Object

Parameters

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

Returns

Object

NameType
errorsError[]
subprojectsSubproject[]

Defined in

src/service/domain/workflow/subproject_eventsourcing.ts:111