Tuesday 30 January 2024

PlantUML: fork and join in state diagram

<<fork>> and <<join>> stereotypes used to define fork, join states in state diagram.

 

forkJoinStates.txt

@startuml

left to right direction

state init

state process {
	state fork_state1 <<fork>>
	fork_state1 --> p1
	fork_state1 --> p2
	fork_state1 --> p3

	state join_state1 <<join>>
	p1 --> join_state1
	p2 --> join_state1
	p3 --> join_state1
}

[*] --> init
init --> process
process --> stop
stop --> [*]

@enduml

 Above snippet generate below diagram.

 


 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment