Type alias ProcessManager<S, C, E, O>

ProcessManager<S, C, E, O>: Reducible<S, O> & {
    actor: {
        [K in keyof E]: ActorHandler<E, K>
    };
    on: {
        [K in keyof E]: ((event, state) => Promise<Message<C> | undefined> | undefined)
    };
    schemas: ProcessManagerSchemas<S, C, E>;
}

Process managers are policies with reducible state, used to expand a consistency boundary around aggregates. Each process is an actor with reduced state from the Output events emitted by the aggregates it encapsulates.

  • schemas for message validation and documentation
  • actor actor id resolvers from input events
  • on event handlers

Type Parameters

Type declaration

Generated using TypeDoc