Skip to main content

service/domain/workflow/workflowitem_eventsourcing

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

Table of contents​

Functions​

Functions​

newWorkflowitemFromEvent​

▸ newWorkflowitemFromEvent(ctx, workflowitem, event): Type<Workflowitem>

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

Parameters​

NameType
ctxCtx
workflowitemWorkflowitem
eventBusinessEvent

Returns​

Type<Workflowitem>

Defined in​

src/service/domain/workflow/workflowitem_eventsourcing.ts:159


parseWorkflowitemFromSnapshot​

▸ parseWorkflowitemFromSnapshot(workflowitemJson): Workflowitem

Parameters​

NameType
workflowitemJsonany

Returns​

Workflowitem

Defined in​

src/service/domain/workflow/workflowitem_eventsourcing.ts:86


sourceWorkflowitemFromSnapshot​

▸ sourceWorkflowitemFromSnapshot(ctx, events, _withLog, workflowitemJson?): Type<Workflowitem>

Parameters​

NameType
ctxCtx
eventsBusinessEvent[]
_withLogboolean
workflowitemJson?any

Returns​

Type<Workflowitem>

Defined in​

src/service/domain/workflow/workflowitem_eventsourcing.ts:20