You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sequenceDiagram
actor P as Patron
participant GUI as :CheckoutGUI
participant DB as :DBMgr
participant l as l:Loan
participant d as d:Document
P->>+GUI: <<uid,cnList>>
GUI->>+DB: u:=getUser(uid): User
GUI-->>P: <msg>
GUI->>+GUI: [u!=null] process(cnList)
loop for each cn in cnList
GUI->>+DB: d:=getDocument(cn): Document
deactivate DB
GUI->>+d: a:=isAvailable(): boolean
deactivate d
GUI->>l: [a]create(u,d)
GUI->>+DB: [a]saveLoan(l)
deactivate DB
GUI->>+d: [a]setAvailable(false)
GUI->>+DB: [a]saveDocument(d)
deactivate DB
end
deactivate GUI
deactivate GUI
sequenceDiagram
actor P as Patron
participant GUI as :CheckoutGUI
participant DB as :DBMgr
participant l as l:Loan
participant d as d:Document
P->>+GUI: <<uid,cnList>>
GUI->>+DB: u:=getUser(uid): User
GUI-->>P: <msg>
GUI->>+GUI: [u!=null] process(cnList)
loop for each cn in cnList
GUI->>+DB: d:=getDocument(cn): Document
deactivate DB
GUI->>+d: a:=isAvailable(): boolean
deactivate d
GUI->>l: [a]create(u,d)
GUI->>+DB: [a]saveLoan(l)
deactivate DB
GUI->>+d: [a]setAvailable(false)
GUI->>+DB: [a]saveDocument(d)
deactivate DB
end
deactivate GUI
deactivate GUI
Origional
Recreated Screenshot