Define multiple starting points in state diagram

+2 votes
asked Oct 29, 2015 in Wanted features by anonymous
When I do the following:

[*] --> state1
[*] --> state2

state1 --> state3
state2 --> state3

state3 --> [*]

There is one starting point leading to state1 and state2. As far as I know this is not compliant with UML and I don't know how to define multiple starting points.

Also I couldn't figure out how to label the starting point as "[*] : label " gives a syntax error.

1 Answer

0 votes
answered Oct 30, 2015 by tsakitan (150 points)
In the official UML specification a starting point / or initial pseudo state is described as follows:
An initial Pseudostate represents a starting point for a Region; that is, it is the point from which
execution of its contained behavior commences when the Region is entered via default activation. It is the
source for at most one Transition, which may have an associated effect Behavior, but not an associated trigger or
guard. There can be at most one initial Vertex in a Region.

So you are right, it is not conform with UML to have two transitions from a starting point, but there should only be one starting point in a Region.