[
https://issues.apache.org/jira/browse/SCB-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang updated SCB-836:
-----------------------------
Description:
We can take the
[nesting-lras|https://github.com/eclipse/microprofile-lra/blob/master/spec/src/main/asciidoc/microprofile-lra-spec.adoc#323-nesting-lras]
from the microprofile as an example.
An activity can be scoped within an existing Saga using the @NestedSaga
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.
> Support the nesting SagaStart
> -----------------------------
>
> Key: SCB-836
> URL: https://issues.apache.org/jira/browse/SCB-836
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Saga
> Reporter: Willem Jiang
> Priority: Major
>
> We can take the
> [nesting-lras|https://github.com/eclipse/microprofile-lra/blob/master/spec/src/main/asciidoc/microprofile-lra-spec.adoc#323-nesting-lras]
> from the microprofile as an example.
> An activity can be scoped within an existing Saga using the @NestedSaga
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)