Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
pack-0.5.0
-
None
Description
In an async environment (ex: microservices architecture communicating via messaging systems) it is important to control when the saga ends. Therefore, I propose a new annotation - @SagaEnd - to have the possibility to explicitly end the Saga, which will also allow the triggering of the compensation methods in case of failure.
NOTE from willem
To support the old behavior of SagaStart, we need to add an option to disable sending the Saga end event.
To avoid the aspect class conflict, I didn't introduce @SagaEnd annotation, I just introduced sendingSagaEnd attribute to SagaStart and Compensable this two annotations class to control the SagaEnd event sending.
Attachments
Attachments
Issue Links
- is related to
-
SCB-1425 Docs for @SagaEnd annotation
- Resolved
- links to