SkipBuilder

Builder for "skip with reason" DSL syntax.

Usage:

  • skip with "Already processed" (String)

  • skip with SkipReason.ALREADY_PROCESSED (Enum)

Note: This builder throws StepSkipSignal to immediately exit the step. No explicit return is needed after skip with.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
infix inline fun <E : Enum<E>> with(reason: E): Nothing

Skips the step with an enum reason (preserves enum instance). Throws StepSkipSignal to immediately exit the step without compensation.

infix fun with(reason: String): Nothing

Skips the step with a string reason. Throws StepSkipSignal to immediately exit the step without compensation.