audit

infix fun SagaExecutor<*, *>.audit(id: String): AuditCommand

Entry point for all audit DSL forms.

Returns an AuditCommand intermediate. To execute the audit:

Usage

// Full chain (unbounded):
val r = (saga audit "order-42").execute()
// or equivalently:
val r = saga audit "order-42" from 0L to Long.MAX_VALUE

// Ranged:
val r = saga audit "order-42" from 0L to 5000L

Return

AuditCommand — the intermediate for execute / from … to.

Parameters

id

The run identifier string. Wrapped in RunId before calling verify.