Can I declare an alias for [*] in state diagram?

0 votes
asked Oct 10, 2022 in Question / help by boshka (3,940 points)
I'd like to have an ability to refer to start/end points (that is [*]) by an alias, similar way as for other states.

so that I could do:

state "[*]" as start1

state "[*]" as start2

state "[*]" as end1

state "[*]" as end2

And then refer to them by the aliases.

It is possible?

1 Answer

0 votes
answered Oct 10, 2022 by The-Lu (64,340 points)

Hello B.,

Yes, it is possible by declaring:

state start1  <<start>>
state start2  <<start>>

state end1    <<end>>
state end2    <<end>>

See also doc. on:

Enjoy.
Regards,
Th.

...