Skip to content

Commit

Permalink
save a new record diagram into documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfdzs committed Apr 8, 2024
1 parent b07cc07 commit d70ab57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added docs/images/saveRecordScenario.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/src/06_runtime_view.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ image::loginScenarioDiagram.png["Diagram of a user logging into the application"

This diagram explains the sequence that every user follows in order to sign into the application.

=== Save record Scenario
image::saveRecordScenario.png["Diagram of a record save"]

In this diagram we can see the sequence for saving a game. When the game is over, the user is redirected to the Game Final screen,
where he/she will click on the "Save record" button to save that game in the history.
First, the gateway service will recognize the action of saving a game, and redirect the request to the history service,
who, after creating the connection to the database, will search for the current user. Once the current user has been obtained from the database, the object
object is created, with the obtained user and the game questions (which have been stored at game time). Finally, the game is saved
in the database.


This flowchart is very similar to the previous one because the actions are basically the same:
insert the user data in the fields. However, the system reacts in a different way than before, that´s
Expand Down

0 comments on commit d70ab57

Please sign in to comment.