how to add state description when using the composite state notation?

0 votes
asked Oct 10, 2022 in Question / help by boshka (3,940 points)
Hello, I'd like to use the notation for the composite state (described here: https://plantuml.com/en/state-diagram), however, I also want to add the state description (as in the simple state notation):

state "St1" as st1: state description

How should I add "state description" into the below code?

state "St1" as st1 {
}

Thanks!

1 Answer

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

Hello B., and all,

Here is an example:

state "St1" as st1 {
  st1: state description
  state st2
  state st3: long descr.
  state st4
  st4: long descr.
}

st2 -> st3
st3 -> st4

I could update the doc. accordingly.

Enjoy,
Regards.

commented Oct 10, 2022 by boshka (3,940 points)
many thanks!
...