Can 'autonumber' keywords works with 'activate' keywords and detects differenct sequence level automatically

0 votes
asked Dec 13, 2018 in Wanted features by anonymous

Can  'autonumber' keywords works with 'activate' keywords and  detects differenct  sequence level automatically

how can i use  code 1 to get the effect of code 2?

@startuml
' code 1
autonumber
o-> a :start
activate a
a->cc
deactivate
cc->d

' code 2
autonumber 1.1
o ->a:start
activate a
a->cc
deactivate
autonumber 2
cc->d
@enduml

1 Answer

0 votes
answered Dec 13, 2018 by plantuml (294,960 points)

Well, not yet. The rules for such a management sound complex.

Note that you can have (see http://forum.plantuml.net/8511/autonumber-result-seems-wrong-in-nested-lifeline )

@startuml
' code 3
autonumber 1.1
o ->a:start
activate a
a->cc
deactivate
autonumber inc A
cc->d
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuL9NICvFILKmvaeiBSdFAyrDIYrICDGpvCfNqBLBj08huqfCBiaiIon9LKZaIjIrIqxcIac52I5hoynBLd3aIaxMjKlXSaZDIm4Q3m00

...