Hi.
I wanted to represent nested component states within a state diagram using concurrent states like this:
@startuml
state TopLevelComponentStateOne {
InnerComponentAStateOne --> InnerComponentAStateTwo
--
InnerComponentBStateOne --> InnerComponentBStateTwo
--
InnerComponentXStateOne --> InnerComponentXStateTwo
}
state TopLevelComponentStateTwo {
InnerComponentAStateTwo1 --> InnerComponentAStateOne1
--
InnerComponentBStateTwo1 --> InnerComponentBStateOne1
--
InnerComponentXStateTwo1 --> InnerComponentXStateOne1
}
TopLevelComponentStateOne --> TopLevelComponentStateTwo
TopLevelComponentStateTwo --> TopLevelComponentStateOne
@enduml
However, I'd expect to be able to reuse "InnerComponentAStateTwo" in both "TopLevelComponentStateTwo" and "TopLevelComponentStateOne" , however if I try to do this I get: "The state has been created in a concurrent state" error.
So as a workaround I made it unique by adding a '1' suffix ...
Maybe I should use a different approach, but my system really allows componentA to have the same state even if it's container has a different state. If this is a limitation, I'd be willing to test a beta that fixes it!
Thank you.