1 Sequence diagrams
djmil edited this page 2023-08-27 16:58:44 +02:00

Get Active Games list

sequenceDiagram
	participant JS as FrontEnd
	participant SB as SpringBoot
	participant C as Corda
	JS->>JS: Authenticate as Alice
	JS->>SB: Get Active Games
	activate SB
		SB->>SB: Generate Client RequestID [CiD]
		SB->>SB: Fetch HoldingIdentityHash [HiH] for Alice
		SB->>+C: POST: /flow/HiH<br>{flow: ListActiveGames,<br>ClientRequerstID: CiD}

			C-->>C: StartFlow
			C-->>SB: FlowStatus=STARTED
			loop untill Status!=COMPLETED
				SB->>C: GET: flow/HiD/CiD
				C-->>C: CheckFlow
				C-->>-SB: Status,<br>List[ActiveGames]
			end
		

		SB->>SB: Pack: List[ActiveGames]
		SB-->>JS: Packed List[ActiveGames]
	deactivate SB