startSaga

@Transactional
open fun startSaga(sagaType: SagaTypeValue, payload: Any): S(source)

Type-safe overload of startSaga that accepts the saga type as a SagaTypeValue so callers cannot pass an arbitrary string.


@Transactional
open fun startSaga(sagaType: String, payload: Any): S(source)

Persists a new saga aggregate in SagaStatus.STARTED with a freshly generated UUID and a JSON-serialized payload. The saga's id is the correlation handle returned to the caller for subsequent recordSagaStep / completeSaga / failSaga calls.