for a while I'm using PlantUML to create sequence diagram. Everything works fine ... but looked a bit boring and "geek"-like.
So I google for nice sprites and found PlantUML Icon-Font Sprites on GitHub. I included the sprites successfully in my sequence diagram but as soon as I used them, I got a syntax error. After some investigation, I discovered that PlantUML tries to create state diagrams and certain elements of the sequence diagram (like the separator) are not valid.
So my two questions:
- How does PlantUML decide which diagram type to draw?
- How can I change this to sequence diagrams?
Example
@startuml
!pragma teoz true
skinparam defaultTextAlignment center
!include puml-icons/common.puml
!include puml-icons/font-awesome-5/user.puml
hide footbox
/'FA5_USER(Alice, Alice)
FA5_USER(Bob, Bob)'/
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml
@startuml
!pragma teoz true
skinparam defaultTextAlignment center
!include puml-icons/common.puml
!include puml-icons/font-awesome-5/user.puml
hide footbox
FA5_USER(Alice, Alice)
FA5_USER(Bob, Bob)
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml