[State Diagram] History pseudo-states

0 votes
asked Sep 17 in Wanted features by edobez (190 points)
Hello,

Is it already possible to draw pseudo-states like Deep and Shallow history on State Diagrams?

This would be a nice feature to get closer to the UML specification.

Thanks,

Edoardo
commented Sep 18 by edobez (190 points)
I later found that this is strictly related to question http://forum.plantuml.net/1665/history-pseudostate. It hasn't been answered though.

1 Answer

0 votes
answered Sep 17 by Artrax
You can use [H], but this state is not accessible from the outside of a state.

state example {

[H] --> Some

}

Other --> [H] 'Would be another state'
commented Sep 18 by edobez (190 points)
Thank you, this is something but it doesn't solve my problem since as you said you can't target the History pseudo-state from outside. This is a common state pattern named "Transition to History".
commented Sep 19 by Artrax
I know, but what you want to do is not possible with plantuml
...