Class SagaManager<AR, A>

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

Implements

Constructors

Properties

actionPublisher: ActionPublisher<A>

Interface for Action publishing of type IActionPublisher<A>

saga: ISaga<AR, A>

A saga component of type ISaga<AR, A>

Methods

  • Handles the action result of type AR

    Parameters

    • actionResult: AR

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

    Returns Promise<readonly A[]>

    list of Actions of type A

Generated using TypeDoc