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.

Am I doing something wrong?

1 Answer

0 votes
answered Aug 13, 2020 by Serge Wenger Work (14,660 points)

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

== Section 1 ==
C1 [hidden]-> C2
activate C1
  C1 [#LightSeaGreen]-> C2 ++
  note left : Just a note
     'Deactivate C2
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
deactivate C1


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 (14,660 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.