1

I am using tikz-uml to create a UML sequence diagram. The sequence involves the object's life to die after an asynchronous call is made, and then it gets alive again after the response is got. Something like this:

enter image description here

However, i cannot recreate the same thing in in LaTeX TikZ-UML. This is what i get instead.

enter image description here

Here is my MWE.

\documentclass{article}
\usepackage{tikz-uml}
\begin{document}
\begin{tikzpicture}
\begin{umlseqdiag}
\umlactor[no ddots]{user}
\umlobject[no ddots]{web}
\umlobject[no ddots]{DB}
\begin{umlcall}[op={\-}, return={\-}]{user}{web}
\begin{umlcall}[op={receive\_request}, return={send\_request}]{web}{DB}
\end{umlcall}
\end{umlcall}
\end{umlseqdiag}
\end{tikzpicture}
\end{document}

How to end the object life and start the object life in between? They are simply asynchronous calls.

2
  • From a design perspective the behaviour of tikz-uml seems to make sense for me - how can I return a value to an object that does not exist anymore?
    – epR8GaYuh
    Commented Jul 18, 2018 at 20:31
  • Your MWE does not compile as no language is specified. You should consider adding \usepackage[english]{babel} (or something similar to the preamble of your MWE.
    – epR8GaYuh
    Commented Jul 18, 2018 at 20:33

0

You must log in to answer this question.

Browse other questions tagged .