Using !log directive, we can add some log messages to the diagram. These log messages will be printed to the command line output stream.
log.txt
@startuml
title "User login flow"
start
!log Process started......
: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
!log Process stopped......
@enduml
Get the diagram from above file.
$java -jar plantuml.jar log.txt
[Log] Process started......
[Log] Process stopped......
log.png

No comments:
Post a Comment