call
Defines the next saga step with "then call 'name' with { ... }" syntax.
Example:
then call "charge-payment" with { context ->
paymentService.charge(context.amount)
} otherwise { result ->
paymentService.refund(result.transactionId)
}Content copied to clipboard
Defines the next saga step with enum-based name. The enum instance is preserved and can be retrieved via stepAs<E>() on events.