Monday 25 September 2023

PlantUML Activity Diagram Tutorial

Activity diagram is a behavioural diagram that describes dynamic aspects of the system.

helloworld.txt

@startuml

title "User login flow"

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.


 
 

Points to note

a.   Activities label starts with : and ends with ;.

b.   Text formatting can be done using creole wiki syntax.

Previous                                                    Next                                                    Home

No comments:

Post a Comment