[State Diagram] junction pseudo-states

0 votes
asked Dec 27, 2023 in Wanted features by Esperito (140 points)
In state diagrams, the choice pseudo-state is supported, but the junction pseudo-state is not supported.

By non-support of the junction pseudo-state, I could not design  state machine that is slightly complicated without increasing states or transition.

I want to append the 'junction' stereotype.
I know that the 'start' stereotype is simlular to the junction pseudo-state.
By using the 'start' stereotype,  the PlantUML generates the start pseudo-state symbol that is same appearance to the junction pseudo-state symbol.
I think that it is easy to support the 'junction' stereotype.

Please try to be constructive when considering this matter.

1 Answer

0 votes
answered May 14 by duc_ttm (160 points)
edited May 14 by duc_ttm

How about  this (use entryPoint in an invisible state as junction point)

@startuml

state choice1 <<choice>>

state " " as X #white;line:white {

state " " as junction1 <<entryPoint>>

}

[*] --> Idle

Idle --> choice1 : CoffeeRequested

choice1 --> BeansGrinding : [isUngrindedBeans?]

choice1 --> junction1 : [else]

BeansGrinding --> junction1

junction1 --> BeansFilling : / UpdateRecipe()

@enduml

You can check it here:

...