Sequence activation/Deactivation

0 votes
asked Aug 13, 2020 in Question / help by gbrusella (200 points)

I am having some issues when I activate/deactivate lifelines. 

A) if you see the next example I activate the lifeline AFTER the section, but graphically get activated from the top.

B) On the same diagram, when I start with Section 2, the same problem appears. kind of suggesting that there is an active lifeline but it does not.

PlantUML sequence

I leave this example here.

http://www.plantuml.com/plantuml/png/ZLB1IiD05BplLmnuy50i9Dw4Q4k5WdYh5n4F3pDj0jkti7cfzU_T94fZGy4zBBl3C3FxPXUDIRHsxrrHOCCFguCYGr4uIUU36B7A7DA6jwldUbVPXhAEfBxVt6ELOpPpW8R4yzmQxl3KDWRf8OTkNJ_of9KFMAIrKLt9iOkxO78xDLccIyNuwv8eFT7rVYy1EofZ9oi_H5zlwMibme4H2OBuI2c_m6DzDAeXw13u56dGApb2pdAyqY2JB9D7TE4ozrTeB3EVpvTQTWcm3v63rBYH_F-DJ6QrRjaq-Ap47ixdTgc91RLCV-8R

Am I doing something wrong?

1 Answer

0 votes
answered Aug 13, 2020 by Serge Wenger Work (15,620 points)

Hello, I Have a workaround with [hidden]->:

@startuml
== Section 1 ==
C1 [hidden]-> C2
activate C1
  C1 [#LightSeaGreen]-> C2 ++
  note left : Just a note
     'Deactivate C2
     return
deactivate C1

C1 [#LightSeaGreen]-> C3 ++
  note left : Another note
  C3 -> C3
    'To generate another lifeline over the already exixtent one
    activate C3
    deactivate C3
  note left : Yet another note
  C3 [#LightSeaGreen]--> C1
deactivate C3
note left : ...And one more note

== Section 2 ==
C1 [hidden]-> C2
activate C1
  C1 [#LightSeaGreen]-> C2++
  note left : Guess what? Another note
     return
deactivate C1
@enduml

http://www.plantuml.com/plantuml/uml/fL71IiD05BplLmnuy50C9Dw4Q4k4WdYh5n4FYpjj5ZQxi7cfzU_D9fR6XfwwjpTlc9bzisn5H-aQfyeI6tw93Huvob9LEJvgQmpzvzqZgaBfVhdNGbIv0jBwvjNkQjbGhoEFD2mM2l112CUju04lNIlG0wIGtkqpJrh5Y4LA5xqodBge2oRtSvDLFzICHvUUCX3LuFSMiADdJBBwZ-Zibivw8kpxgOUWNQGsF-317eHU4FmO-1Hfr3ES86SvtYdGioopJwHmkVelD9N9icpbJKg09aIEKjEAYYigcXrltR5jyLrhUJe_vALgblIcQzml

 

commented Aug 13, 2020 by gbrusella (200 points)
Thanks... That helps!

But is this a Bug? Why do I need to create that hidden interaction?
commented Aug 14, 2020 by Serge Wenger Work (15,620 points)
Sorry, I don't know
commented Sep 23, 2020 by Schmock
This is a wonderful trick, I use it now with "messages to self" just before deactivation. They always ended after the lifeline.
...