Skip to main content

Pipeline Cheatsheet

Core Types

Pipeline

PipelineBuilder

PendingExecution

ProcessingState

TransformState

Step Output Normalization

Value steps may return:
  • a raw value
  • a Result
  • a CanCarryState
Normalization rules:
  • raw value -> wrapped into Result::success(...)
  • Result -> replaces the current state result
  • CanCarryState -> applied onto the prior state via applyTo()
  • null from through() / map() -> failure with Null value encountered
  • null from finally() / when() branches -> success with null

Quick Examples

Simple transform

Failure shaping