How to properly exit nested states in UML state diagrams?

David J.

I'm new at UML and I'm trying to document my software development process. I made the following diagram with PlantUML:

enter image description here

Within the inner states, I'd like to show that once their respective releases (i.e. minor/patch) are made, the next-highest level state should be returned to.

For example, after PatchRelease, Patch should exit to EvalStory. Ditto for MinorRelease --> EvalEpic. How should I show this? (An answer providing PlantUML code won't be necessary but would be nice)

[*] --> 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

}



}
Peter Uhnak

For example, after PatchRelease, Patch should exit to EvalStory

That is already happening, as that is the default behavior.

Once PatchRelease has finished, there's nowhere else to go, so the Patch finishes its operation and then you can look at it again as if there were no states inside Patch.

If you want to be explicit, you can

  1. add a final state after EvalStory, so a reader knows that you really meant to end there and it wasn't an accidental omission
  2. use entry/exit states; unfortunately PlantUML doesn't support those

you can read on entry/exit states for example here http://www.uml-diagrams.org/state-machine-diagrams.html#exit-point-pseudostate

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

UML State machine with nested states and do Activity

From Dev

UML behavioral state diagram: entry and exit point ownership implications for orthogonal states

From Java

How to integrate UML diagrams into GitLab or GitHub

From Dev

How to model tight coupling in UML class diagrams

From Dev

UML state chart - is it legal to exit a composite state from a meta state

From Dev

UML Diagrams with C

From Dev

Regarding UML diagrams and patterns?

From Dev

Java UML Diagrams to Classes

From Dev

Are my Uml diagrams correct?

From Dev

Netbeans UML diagrams

From Dev

Representing LinkedLists in UML diagrams?

From Dev

UML Diagrams with C

From Dev

How to draw calls from constructors in UML sequence diagrams?

From Dev

How can compile-time conditions be represented in UML activity diagrams?

From Dev

How to draw methods inside self message methods for UML sequence diagrams

From Dev

How do I generate Diagrams and UML of Kotlin code?

From Dev

How to represent already built API classes on uml diagrams?

From Dev

How to represent different roles of users in UML Use cases diagrams?

From Dev

How to properly pass a killed child process's exit state up to the shell?

From Dev

Angular UI Router Nested State resolve in child states

From Dev

angular-ui-router nested states "no such state" for parent

From Dev

Walking by nested states in ui-router without reloading parent state

From Dev

How to exit while loop properly?

From Dev

How to use Nested States & Views correctly?

From Dev

UML class diagrams main class

From Dev

Drawing UML Diagrams with many variables

From Dev

Translating user stories in UML diagrams

From Dev

Properly returning nested state with Object.assign

From Dev

How to interpret a UML 2.5 State Machine diagram?

Related Related

  1. 1

    UML State machine with nested states and do Activity

  2. 2

    UML behavioral state diagram: entry and exit point ownership implications for orthogonal states

  3. 3

    How to integrate UML diagrams into GitLab or GitHub

  4. 4

    How to model tight coupling in UML class diagrams

  5. 5

    UML state chart - is it legal to exit a composite state from a meta state

  6. 6

    UML Diagrams with C

  7. 7

    Regarding UML diagrams and patterns?

  8. 8

    Java UML Diagrams to Classes

  9. 9

    Are my Uml diagrams correct?

  10. 10

    Netbeans UML diagrams

  11. 11

    Representing LinkedLists in UML diagrams?

  12. 12

    UML Diagrams with C

  13. 13

    How to draw calls from constructors in UML sequence diagrams?

  14. 14

    How can compile-time conditions be represented in UML activity diagrams?

  15. 15

    How to draw methods inside self message methods for UML sequence diagrams

  16. 16

    How do I generate Diagrams and UML of Kotlin code?

  17. 17

    How to represent already built API classes on uml diagrams?

  18. 18

    How to represent different roles of users in UML Use cases diagrams?

  19. 19

    How to properly pass a killed child process's exit state up to the shell?

  20. 20

    Angular UI Router Nested State resolve in child states

  21. 21

    angular-ui-router nested states "no such state" for parent

  22. 22

    Walking by nested states in ui-router without reloading parent state

  23. 23

    How to exit while loop properly?

  24. 24

    How to use Nested States & Views correctly?

  25. 25

    UML class diagrams main class

  26. 26

    Drawing UML Diagrams with many variables

  27. 27

    Translating user stories in UML diagrams

  28. 28

    Properly returning nested state with Object.assign

  29. 29

    How to interpret a UML 2.5 State Machine diagram?

HotTag

Archive