HaltScope

class HaltScope<C, R, S>(val step: TypedValue, val context: C, val state: S, val effectKey: String?)

Receiver scope for before.each(step) { } lambdas.

Provides access to the current StepPhase.Before phase data and the halt keyword — so halt because "reason" is syntactically available directly inside the block without any import.

Parameters

C

The context type.

R

The result type.

S

The state type.

Constructors

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

Properties

Link copied to clipboard
val context: C

The saga context for the current execution.

Link copied to clipboard

Pre-computed F004 effect-key, or null if the step declares none.

Link copied to clipboard

Sentinel that enables halt because "reason" inside a before.each(step) { } block.

Link copied to clipboard
val state: S

Current saga state snapshot.

Link copied to clipboard

Step identifier for the step about to execute.