我是UML新手,我試圖記錄我的軟件開發過程。我與PlantUML如下圖:如何正確退出UML狀態圖中的嵌套狀態?
內國之內,我想表明,一旦它們各自的版本(即未成年人/補丁)製成,下一個最高級別的狀態應該是返回。
例如,在PatchRelease
,Patch
應該退出到EvalStory
。同上MinorRelease --> EvalEpic
。我應該如何顯示這個? (提供PlantUML代碼的答案不會是必要的,但將是很好)
[*] --> Major
state Major {
[*] --> CreateEpic
note right : An 'Epic' describes the set of desired\nfeatures the end-user would like to see
CreateEpic --> EvalEpic
EvalEpic --> Minor : unfulfilled
EvalEpic --> MajorRelease : fulfilled
MajorRelease --> [*]
state Minor {
[*] --> CreateStory
CreateStory --> EvalStory
EvalStory --> Patch : unfulfilled
EvalStory --> MinorRelease : fulfilled
MinorRelease --> DeployLive
state Patch {
[*] --> Testing
Testing --> DeployTest
DeployTest --> EvalTest
EvalTest --> Testing : bugs found
EvalTest --> PatchRelease: no bugs found
state Testing {
[*] --> WriteTests
WriteTests --> RunTests
RunTests --> WriteCode: test(s) failed
RunTests -left-> WriteTests: tests passed
WriteCode --> RunTests
}
Patch --> EvalStory
}
Minor --> EvalEpic
}
}
其實彼得的答案更完整。我們同時發佈了,所以我提出了這個建議,並向OP推薦了相同的內容。 – Ister