Compensation

data class Compensation<C, R, S>(val step: TypedValue, val result: R?, val state: S) : StepPhase<C, R, S>

A compensation action has completed for this step.

Fires AFTER each compensation runs. Throws are swallowed to keep the compensation loop alive.

Constructors

Link copied to clipboard
constructor(step: TypedValue, result: R?, state: S)

Properties

Link copied to clipboard
val result: R?

The result from the original forward action (null if not available)

Link copied to clipboard
val state: S

The current saga state (Unit for non-stateful executors)

Link copied to clipboard

The step identifier