Missing pseudo states in states diagram

0 votes
asked Aug 20 in Wanted features by Kjeld
Currently states diagram has fork, join and orthogonal states, but what about the diamond shaped choice state?

1 Answer

0 votes
answered Aug 20 by anonymous
What is also missing is the possibility to put enter and exit actions on states, as well as H and H*
commented Aug 20 by Serge Wenger Work (11,680 points)

You can do like this: 


hide empty description

skinparam state {

BackgroundColor<<History>> Yellow


State Off

State Off : Entry: x.PowerLed(false);

State Off : Exit: x.Dummy1();

State On {

state "H" as On_H <<History>>

state "Step1" as On_Step1

state "Step2" as On_Step2

state "Step3" as On_Step3

[*] -right-> On_Step1

On_Step1 -right-> On_Step2

On_Step2 -right-> On_Step3

On_Step3 -> [*]


State On : Entry: x.PowerLed(true)

[*] -> Off

Off -up-> On_H : SwitchOn

On -> Off : SwitchOff