Saga Compensation Step Factory
Factory hook used by SagaCompensationEngine to create a service-specific compensation step instance against the persistence-agnostic SagaStep contract.
Functions
Link copied to clipboard
abstract fun createCompensationStep(sagaId: String, stepName: String, status: SagaStepStatus, createdAt: Instant, completedAt: Instant?, compensationStepId: Long?): T
Builds a fresh compensation SagaStep for the owning service. The returned instance must reference the original step it compensates via compensationStepId so the engine can correlate them.