SCH Dashboard Back end Flow - DTS-STN/sc-digital-centre GitHub Wiki

SCH Back-end Interactions

Sequence Code

title SCH Back-End Interactions
participant Client
participantgroup #lightblue DTS
participant SCH-BackEnd
end
Client->SCH-BackEnd:User Requests Page Load
activate SCH-BackEnd
SCH-BackEnd->SCH-BackEnd:Validate User Session
SCH-BackEnd->Client:Redirect to Login
deactivate SCH-BackEnd
Client->Login:Client Autenticates
activate Login
note over Login: Additional processes for authentication not documented here.
Login->Client:Authentication Validated
deactivate Login
Client->SCH-BackEnd:Requests Page Load with encrypted Auth Token
activate SCH-BackEnd
SCH-BackEnd->SCH-BackEnd:Validate & Store Auth Token
SCH-BackEnd->AEM:Fetch Content for Page
activate AEM
AEM->SCH-BackEnd:Return Content
deactivate AEM
SCH-BackEnd->Client:Return Page Content & Scripts
deactivate SCH-BackEnd

Client-->(1)SCH-BackEnd:Async Request EI Data
activate SCH-BackEnd
Client-->(1)SCH-BackEnd:Async Request CPP Data
activate SCH-BackEnd
Client-->(1)SCH-BackEnd:Async Request OAS Data
activate SCH-BackEnd
note over SCH-BackEnd:The following happens for each requested program
SCH-BackEnd->>SCH-BackEnd:Validate Session
SCH-BackEnd->>Interop:Request Program Data
activate Interop
aboxleft right of Interop: Validate Authentication and Request SIN for User, then request data from program source. //Not documented here.//
SCH-BackEnd<<-Interop:Return Program Data
deactivate Interop
Client(8)<-SCH-BackEnd:Return OAS Data
deactivate SCH-BackEnd
space -8
Client(2)<-SCH-BackEnd:Return CPP Data
deactivate SCH-BackEnd
Client(4)<-SCH-BackEnd:Return EI Data
deactivate SCH-BackEnd