1 Sequence diagrams
djmil edited this page 2024-11-24 18:25:23 +01: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