Uml Statechart diagram with multiple transitions outgoing from initial state

StackOverflow https://stackoverflow.com/questions/15728049

  •  30-03-2022
  •  | 
  •  

문제

I'm a novice Uml guy I want to know if it is possible to have multiple transitions outgoing from the initial state in a statechart diagram

도움이 되었습니까?

해결책

As per spec, you need a single initial state (solid circle) with a single transition pointing to the "real" starting state, i.e. the state your system is when it starts. If you feel you need several transitions to several starting states, then either:

  • You are missing an intermediary state, that could be quite trivial (e.g. "started")
  • You might consider using a choice node (diamond node) just after the initial state, but it is not usually a good practice.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top