Class SagaManager<AR, A, ARM, AM>

Saga manager - Stateless process orchestrator.

It is reacting on Action Results of type AR and produces new actions A based on them.

Author

Иван Дугалић / Ivan Dugalic /

Idugalic

Type Parameters

  • AR

    Action Result of type AR

  • A

    Action of type A that are going to be published downstream

  • ARM

    Action Result metadata

  • AM

    Action metadata

Implements

Constructors

Properties

Methods

Constructors

Properties

actionPublisher: IActionPublisher<A, ARM, AM>

Interface for Action publishing

saga: ISaga<AR, A>

A saga component of type ISaga<AR, A>

Methods

  • Handles the action result with metadata of type AR & ARM

    Parameters

    • actionResult: AR & ARM

      Action Result represent the outcome of some action you want to handle in some way

    Returns Promise<readonly (A & AM)[]>

    list of Actions with Metadata of type A & AM

Generated using TypeDoc