Lifeline deactivation issue

+1 vote
asked Nov 3, 2014 in To be sorted by anonymous

Hello,

I got an issue with the following sequence diagram example (using 8008) :

@startuml
A -> B
activate B
note over B : something
deactivate B
@enduml

What i get : http://www.noelshack.com/2014-45-1415017333-result.png

What i expected (using paint) : http://www.noelshack.com/2014-45-1415017613-expected.png

Is there a way to get the expected result ?

 

Thank you for your work,

Best regards

 

2 Answers

0 votes
answered Nov 11, 2014 by anonymous

@startuml
A -> B
activate B
note over B : something

C -> D

deactivate B
@enduml

And crop the resulting diagram.

Lifeline activation/deactivation is always associated with a message. I am not aware of a way to bypass that.

commented Nov 12, 2014 by anonymous
Thank you for your input, unfortunately I cannot use cropping in my project.
I also tried to use a message with a white arrow (to hide it), but it rendered badly.
0 votes
answered Sep 9, 2015 by anonymous

@startuml
A -> B
activate B
note over B : something

A  -[#white]> B

deactivate B
@enduml

supposing that the diagram background color is white...

no need for cropping the image.

commented Sep 10, 2015 by PeterBakker (280 points)
You can also use #transparent instead of #white, in which case the background color doesn't matter
...