Following condition end styles are supported in PlantUML.
a.
Diamond
style : It is the default style
b.
Horizontal
line style
Diamond style : It is the default style
skinparam ConditionEndStyle diamond
diamondConditionStyle.txt
@startuml title "User login flow" skinparam ConditionEndStyle diamond start :User enter username and password; if (credentials are correct) then (yes) : Take user to the home page; else (no) : Take user to the login page and **display error message**; endif stop @enduml
Horizontal line style
skinparam ConditionEndStyle hline
horizontalEndLine.txt
@startuml title "User login flow" skinparam ConditionEndStyle hline start :User enter username and password; if (credentials are correct) then (yes) : Take user to the home page; else (no) : Take user to the login page and **display error message**; endif stop @enduml
Above snippet generate below diagram.
No comments:
Post a Comment