SagaStatus

Lifecycle status of a saga aggregate (Saga).

State machine (choreography flow):

STARTED ──► AWAITING_RESPONSE ──► COMPLETED                       (happy path)
│ │
│ └──► COMPENSATING ──► COMPENSATED (rollback OK)
│ │
│ └──► COMPENSATION_FAILED (manual intervention)

└──► FAILED (no compensation needed)

isTerminal returns true for states that the engine and watchdog must never advance further on their own.

Entries

Link copied to clipboard

Initial state. Local saga and its first step were just recorded.

Link copied to clipboard

Saga is parked waiting for an external feedback event correlated by sagaId (Saga Log Correlation). Watched by SagaWatchdog, which fails the saga if it stays here longer than veds.saga.await-response-timeout.

Link copied to clipboard

Terminal — saga succeeded end-to-end.

Link copied to clipboard

Terminal — saga failed and was not eligible for compensation.

Link copied to clipboard

Compensation in progress. SagaCompensationRunner is iterating previously-completed steps in reverse order, undoing each one via SagaCompensator.

Link copied to clipboard

Terminal — every step was successfully compensated.

Link copied to clipboard

Terminal — at least one step refused to compensate. SagaWatchdog will retry compensation after veds.saga.compensation-retry-cooldown.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

True when the engine must not perform any further automatic transitions on this saga.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.