From 2891ac2db3d7962cad197b003f379611ea5d8953 Mon Sep 17 00:00:00 2001 From: Lucas Andrade de Lima Date: Fri, 23 May 2025 19:29:47 -0300 Subject: [PATCH 1/2] Enhance documenation for Sagas add section for Saga.State --- Documentation/basics/sagas.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/basics/sagas.md b/Documentation/basics/sagas.md index 5df006444..3a643d79d 100644 --- a/Documentation/basics/sagas.md +++ b/Documentation/basics/sagas.md @@ -127,6 +127,21 @@ public class OrderSaga `AggregateSaga<,,>`). +## Understanding Saga Lifecycle States + + +Each Saga has an internal ```State``` property that defines how it processes events. This property can have the following values: + +- **New** + - Only events defined using ```ISagaIsStartedBy<>``` can be processed. +- **Running** + - Events defined using ```ISagaHandles<>``` will be processed. + - Events defined using ```ISagaIsStartedBy<>``` will also behave the same of ```ISagaHandles<>```. +- **Completed** + - No events will be processed by the Saga anymore. + + + ## Alternative saga store By default, EventFlow is configured to use event sourcing and aggregate From ad012449fd1d5e2b74a28377bdb8130fcaeeddc6 Mon Sep 17 00:00:00 2001 From: Rasmus Mikkelsen Date: Thu, 29 May 2025 10:29:41 +0200 Subject: [PATCH 2/2] Update Documentation/basics/sagas.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Documentation/basics/sagas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/basics/sagas.md b/Documentation/basics/sagas.md index 3a643d79d..fb4e9fb44 100644 --- a/Documentation/basics/sagas.md +++ b/Documentation/basics/sagas.md @@ -136,7 +136,7 @@ Each Saga has an internal ```State``` property that defines how it processes eve - Only events defined using ```ISagaIsStartedBy<>``` can be processed. - **Running** - Events defined using ```ISagaHandles<>``` will be processed. - - Events defined using ```ISagaIsStartedBy<>``` will also behave the same of ```ISagaHandles<>```. + - Events defined using ```ISagaIsStartedBy<>``` will also behave the same as ```ISagaHandles<>```. - **Completed** - No events will be processed by the Saga anymore.