State diagram: crash when mixing concurrent states and entryPoints

0 votes
asked Jun 19, 2021 in Bug by pierreg06 (120 points)
retagged Jun 19, 2021 by pierreg06
The following state diagram leads to a crash:

@startuml
[*] --> State1

state SubFsm2 {
 
  state PseudoEntry1 <<entryPoint>>

  [*] --> SubState1
---
  [*] --> SubState1b
}
@enduml

Crash dump:

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuOhMYbNGrRLJ22v9B4arvE8g1j4AmQL9RiMvHWhLN0fS2WeGiO3YrDAKVDUyag9AGmKRcrGG8o0_Cw_4peuBg0Xg44Whr2nTNLriuabSjLmEgNafGDi1

1 Answer

0 votes
answered Oct 21 by The-Lu (73,540 points)

Hello P.,

Awaiting fully management, here are some workarounds.

As mentioned on:

To display this diagram, we must add inner State, as:

@startuml
[*] --> State1
state SubFsm2 {
state innerState {
state PseudoEntry1 <<entryPoint>>
[*] --> SubState1
}
--
[*] --> SubState1b
}
@enduml


If that can help,
Regards,
Th.

commented Oct 25 by The-Lu (73,540 points)

Or create a pseudo state for the concurrent state, as:

@startuml
[*] --> State1

state SubFsm2 {
state PseudoEntry1 <<entryPoint>>
state Concurrent {
  [*] --> SubState1
---
  [*] --> SubState1b
}
}
@enduml

Enjoy,

Regards,
Th.

...