History pseudostate

+5 votes
asked Mar 3, 2014 in Wanted features by anonymous

Pseudo-states are be supported using the following syntax:

state choiceState <<choice>>

state en1 <<entrypoint>>

but there doesn't seem to be any support for shallow and deep history pseudo-states. Shallow history should be a "H" character in a circle and deep history by "H*" in a circle. It should be possible for a history pseudo-state to be the target of transitions (while nested inside a super-state) and it should be possible to set a transition from the history state to whatever the default state is. See the diagram below:

  @startuml
  state Comp {
      state en1 <<entrypoint>>
      [*] --> A
      A --> B
      B --> C
      C --> [*]
      en1 --> History
      History --> A
  }
  
  [*] --> en1
  @enduml
 
It seems the only way to target the sub-state is to use the entrypoint, if it is targeted directly it gets pulled out of the composite state (bug?).

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...