Before

data class Before<C, R, S>(val step: TypedValue, val context: C, val state: S, val effectKey: String? = null) : StepPhase<C, R, S>

The step is about to execute its forward action.

An interceptor returning Veto here prevents the forward action from running.

Constructors

Link copied to clipboard
constructor(step: TypedValue, context: C, state: S, effectKey: String? = null)

Properties

Link copied to clipboard
val context: C

The saga context passed to this step

Link copied to clipboard

The computed F004 effect-key for this step, or null if the step declares no effectKey lambda. Pre-validated: always non-blank when present. Consumed by ca.acendas.kstate.saga.journal.internal.JournalInterceptor to write metadata["effect-key"] on the Intent entry.

Link copied to clipboard
val state: S

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

Link copied to clipboard

The step identifier