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
Name | Type |
---|---|
ctx | Ctx |
workflowitem | Workflowitem |
event | BusinessEvent |
Returns
Defined in
src/service/domain/workflow/workflowitem_eventsourcing.ts:157
parseWorkflowitemFromSnapshot
▸ parseWorkflowitemFromSnapshot(workflowitemJson
): Workflowitem
Parameters
Name | Type |
---|---|
workflowitemJson | any |
Returns
Defined in
src/service/domain/workflow/workflowitem_eventsourcing.ts:86
sourceWorkflowitemFromSnapshot
▸ sourceWorkflowitemFromSnapshot(ctx
, events
, _withLog
, workflowitemJson?
): Type
<Workflowitem
>
Parameters
Name | Type |
---|---|
ctx | Ctx |
events | BusinessEvent [] |
_withLog | boolean |
workflowitemJson? | any |
Returns
Defined in
src/service/domain/workflow/workflowitem_eventsourcing.ts:20