We can take the nesting-lras from the microprofile as an example.
An activity can be scoped within an existing Saga using the @SagaStart annotation. Invoking a method marked with this annotation will start a new Saga whose outcome depends upon whether the enclosing Saga is closed or cancelled.
- If the nested Saga is closed but the outer Saga is cancelled then the participants registered with the nested Saga will be told to compensate.
- If the nested Saga is cancelled the outer Saga can be still closed.