@startuml state "Req(Id)" as ReqId <<sdlreceive>> state "Minor(Id)" as MinorId state "Major(Id)" as MajorId state c <<choice>> Idle --> ReqId ReqId --> c c --> MinorId : [Id <= 10] c --> MajorId : [Id > 10] @enduml
6 fork/join/choice实例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
@startuml state choice1 <<choice>> state fork1 <<fork>> state join2 <<join>> state end3 <<end>>
[*] --> choice1 : from start\nto choice choice1 --> fork1 : from choice\nto fork choice1 --> join2 : from choice\nto join choice1 --> end3 : from choice\nto end
fork1 ---> State1 : from fork\nto state fork1 --> State2 : from fork\nto state
State2 --> join2 : from state\nto join State1 --> [*] : from state\nto end