The self message arrow is behind the end of lifeline

0 votes
asked Jan 12, 2023 in Question / help by anonymous
edited Jan 12, 2023 by plantuml
语法是:

activate Alice
Alice -> Alice : step1
Alice -> Alice : step2
deactivate Alice

你会发现第二个自我消息箭头在生命线末端后面,如何像第一个一样修复它

(You will find the second self message arrow behind the end of the life line, how to fix it like the first one?)

1 Answer

0 votes
answered Jan 12, 2023 by The-Lu (64,340 points)

Hello A., and all,

See:

See also similar issue and/or workaround here:

Then here are some workaround:

@startuml
Bob -> Alice: Hello!
activate Alice
Alice -> Alice : workaround
Alice -[hidden]-> Alice
deactivate Alice
@enduml

Or:

@startuml
!pragma teoz true
Bob -> Alice: Hello!
activate Alice
Alice -> Alice : workaround
||0||
deactivate Alice
@enduml

Enjoy,
Regards.

...