Base Saga Step
JPA-backed base implementation of the SagaStep port. See BaseSaga for the rationale behind the contract/adapter split — the engine sees an immutable port; this class mutates var fields internally and returns this so Hibernate can dirty-track the update.
Constructors
Properties
When this step compensates another, the id of the originally-completed step it reverts.
Instant the step reached a terminal status; null while it is still in progress.
Latest failure reason if the step failed or its compensation failed; null otherwise.
Current lifecycle SagaStepStatus; see the enum's KDoc for terminal/transient semantics.
Step name; conventionally a SagaTypeValue.value. Compensation rows are prefixed with Compensate.
Functions
Records the id of the compensating step that reverted this one.
Transitions to SagaStepStatus.COMPENSATED.
Transitions to SagaStepStatus.COMPENSATION_FAILED and stores error as errorMessage.
Transitions to SagaStepStatus.COMPLETED and stamps completedAt.
Transitions to SagaStepStatus.FAILED and stores error as errorMessage.