composite state error

0 votes
asked Jun 29, 2023 in Bug by anonymous
transition between parent states are error, see below expample:
@startuml
state 1.2.3.4.4x
state 1.2.3.4.4y
  4x-right->4y
  4y-left->4x
state a.b.c.d.dx
state a.b.c.d.dy
  4y -down-> dy
  dx --> 4x
dx->dy
dy->dx

'error happen if uncomment
'1 --> a 
'3 --> 4x

@enduml
commented Jun 30, 2023 by The-Lu (74,900 points)

Hello all,

Here are some minimal examples (for testing and debugging...):

CodeOutput
state 1.2
state a.b

2 -> b

OK
state 1.2
state a.b

1 -> b

KO on 1.2023.10b2


Regards.

commented Jun 30, 2023 by The-Lu (74,900 points)

Here is another non working (perhaps due to new management of 'Packages and Namespaces Enhancement') example:

CodeOutput
state A {
  state X {
  }
  state Y {
  }
}

A -> Y
state A.X 
state A.Y

A -> Y

commented Jun 30, 2023 by The-Lu (74,900 points)

Hello A.,

Here is a possible workaround using nested state without namespace form.:

IO
state 1 {
 state 2 {
  state 3 {
   state 4 {
    state 4x
    state 4y
}
}
}
}

4x-right->4y
4y-left->4x

state a {
 state b {
  state c {
   state d {
    state dx
    state dy
}
}
}
}
  4y -down-> dy
  dx --> 4x
dx->dy
dy->dx

1 --> a 
3 -> 4x

Enjoy....

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...