Skip to content

Instantly share code, notes, and snippets.

@dragod812
Created March 5, 2022 15:00
Show Gist options
  • Save dragod812/cdac45fddec40f321971a531fbb654d3 to your computer and use it in GitHub Desktop.
Save dragod812/cdac45fddec40f321971a531fbb654d3 to your computer and use it in GitHub Desktop.
PlantUML: Sequence Diagram Template
@startuml
participant Participant as Foo
actor Actor as Foo1
boundary Boundary as Foo2
control Control as Foo3
entity Entity as Foo4
database Database as Foo5
collections Collections as Foo6
queue Queue as Foo7
alt success
Foo -> Foo1 : To actor
activate Foo1
note left: this is a first note
else failure
Foo -> Foo2 : To boundary
note over Foo2, Foo1: Both are great items
end
par Run in parallel go routines
Foo -> Foo3 : To control
else
Foo -> Foo4 : To entity
else
Foo -> Foo5 : To database
end
group Grouped Actions
loop 100 times
Foo -> Foo6 ++ #FFBBBB: activate collections with color
Foo <- Foo6 -- : deactivate after done
destroy Foo6
end
Foo -> Foo7: To queue
end
Foo1 -> Foo : work done
deactivate Foo1
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment