Skip to content

Commit

Permalink
introduction updated
Browse files Browse the repository at this point in the history
  • Loading branch information
idugalic committed Apr 19, 2023
1 parent 2fac889 commit 330279a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docs/domain/structuring-the-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ possible
concrete sub-classes of `Command` which are known at compile
time: `CreateRestaurantCommand`, `ChangeRestaurantMenuCommand`, `PlaceOrderCommand`, `CreateOrderCommand`, `MarkOrderAsPreparedCommand`.

Additionally, commands are categorized as Restaurant and Order commands.
Additionally, commands are categorized as Restaurant and Order commands which are respectfully matching two concepts presented on the blueprint / swim-lanes at the bottom / yellow sticky notes.

![restaurant model](/img/restaurant-model.jpg)

```kotlin
sealed class Command
Expand Down Expand Up @@ -133,7 +135,9 @@ We model our events as a `Sum` type (`OR` relationship) by using `sealed` class.
sub-classes of `Event` which are known at compile
time: `RestaurantCreatedEvent`, `RestaurantNotCreatedEvent`, `RestaurantMenuChangedEvent`, `RestaurantMenuNotChangedEvent`, `OrderPlacedAtRestaurantEvent`, `OrderNotPlacedAtRestaurantEvent`, `OrderRejectedByRestaurantEvent`, `OrderCreatedEvent`, `OrderPreparedEvent`, `OrderRejectedEvent`.

Additionally, events are categorized as Restaurant, RestaurantError, Order and OrderError events.
Additionally, events are categorized as Restaurant and Order events which are respectfully matching two concepts presented on the blueprint / swim-lanes at the bottom / yellow sticky notes.

![restaurant model](/img/restaurant-model.jpg)

```kotlin
sealed class Event {
Expand Down
2 changes: 1 addition & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ dependencies {
You have great frameworks at your service to bootstrap development:

- [Ktor](https://ktor.io/quickstart/)
- [Spring](https://spring.io/guides/tutorials/spring-boot-kotlin/)
- [Spring](https://spring.io/guides/tutorials/spring-boot-kotlin/) (check the [demo applications](https://github.com/search?q=topic%3Afmodel-demo-spring+org%3Afraktalio&type=Repositories))

:::info
Fmodel does not require usage of any framework whatsoever. It is completely up to you!
Expand Down

0 comments on commit 330279a

Please sign in to comment.