Skip to content

Instantly share code, notes, and snippets.

@ChosenQuill
Last active May 6, 2023 00:49
Show Gist options
  • Save ChosenQuill/b1ebd0fc2def16a83a49d85bd86588f2 to your computer and use it in GitHub Desktop.
Save ChosenQuill/b1ebd0fc2def16a83a49d85bd86588f2 to your computer and use it in GitHub Desktop.
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
Loading
@ChosenQuill
Copy link
Author

ChosenQuill commented May 6, 2023

Origional

Origional

Recreated Screenshot

Recreated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment