Auto Registered Step
A base class for Steps that automatically register themselves into the global StepRegistry.
This is useful when you want to avoid manually invoking registerSteps {}
and instead rely on instantiation to handle registration.
Example:
class FraudCheck : AutoRegisteredStep<RiskContext>() {
override val name = "FraudCheck"
override suspend fun execute(context: RiskContext): StepResult = ...
}
// Somewhere during initialization:
FraudCheck() // Automatically registers itself
Content copied to clipboard
⚠️ Use this class only when instantiating steps early during setup.
Properties
Functions
Link copied to clipboard
Executes the step logic using the given context.