createCompensationStep

abstract fun createCompensationStep(sagaId: String, stepName: String, status: SagaStepStatus, createdAt: Instant, completedAt: Instant?, compensationStepId: Long?): T(source)

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.