Can <<entryPoint>> be used in a state diagram containing concurrent state

0 votes
asked Jul 12, 2023 in Bug by anonymous

The following state diagram doesn't seem to draw concurrent states correctly

@startuml

state Sub {
state ep1 <<entryPoint>>
ep1 --> s1

}

[*] --> ep1

--

[*] --> SomewhatBroken

@enduml

The  following doesn't render at all:

@startuml

[*] --> TotallyBroken

--

state Sub {
state ep1 <<entryPoint>>
ep1 --> s1

}

[*] --> ep1

@enduml

See the output from the online server //www.plantuml.com/plantuml/png/SoWkIImgAStDuUAArefLqDMrKmZ9BqdCoQbqAihFJitZujBLvU82AYf9LGWkJLAeXh9J2mmLR6nIyqgAAWFoC_DAxEouW49W_SM6N5orSEE0Ae5yXzIy5A0b0000

1 Answer

0 votes
answered Oct 21, 2024 by The-Lu (85,440 points)

Hello A.,

Awaiting fully management, here are some workarounds.

As mentioned on:

To display those diagrams, we must add outer Master State, as:

@startuml
State MasterState {
state Sub {
state ep1 <<entryPoint>>
ep1 --> s1
}
[*] --> ep1
--
[*] --> SomewhatBroken
}
@enduml

And:

@startuml
State MasterState {
[*] --> SomewhatBroken
--
state SubState {
state Sub {
state ep1 <<entryPoint>>
ep1 --> s1
}
[*] --> ep1
}
}
@enduml

If that can help,
Regards,
Th.

...