Create vertical window in sequence diagram

0 votes
asked Mar 13, 2022 in Question / help by isidore2389 (120 points)

I'm trying to reproduce following sequence diagram:

I can't reproduce the vertical arrow. Say I have participants A (left) and B (right)
A -> B++
B -> B ; Set Req
A <<-- B --
deactivate A

for the first part and (to workaround activate/deactivate error message):

B <-[hidden]-> B : After 2 years
activate B
B -> B : Set Req

However, I get the 2 rectangles right, but no visible vertical arrow due to the hidden. How can I achieve this?

1 Answer

0 votes
answered Mar 13, 2022 by The-Lu (64,760 points)

Hello I.,

Here is a proposal with `teoz` and `vertical arrow`:

@startuml
!pragma teoz true
A -> B++
B -> B : Set Req
A <<-- B --
deactivate A

{start} B -[hidden]-> B
B -[hidden]-> B
{end} B -[hidden]-> B

{start} <-> {end} : After 2 years
activate B
B -> B : Set Req
@enduml

See also doc. here:

If that can help,

Regards,
Th.

...