3

When I try to use tikz-uml to draw s sequence diagram, I found it's not possible to nest a self call. for example, below code work fine since it's not a nest self call:

\documentclass{standalone}
\usepackage{tikz-uml}

\begin{document}

\begin{tikzpicture}
\begin{umlseqdiag}
\umlobject[class=A.java]{A}

\begin{umlcallself}[op=funA(),return=0]{A}
\end{umlcallself}

\begin{umlcallself}[op=funB(),return=1]{A}
\end{umlcallself}

\end{umlseqdiag}
\end{tikzpicture} 
\end{document}

The output is:

enter image description here

But if I nest it as below, then compile will failure:

\documentclass{standalone}
\usepackage{tikz-uml}

\begin{document}

\begin{tikzpicture}
\begin{umlseqdiag}
\umlobject[class=A.java]{A}

\begin{umlcallself}[op=funA(),return=0]{A}

\begin{umlcallself}[op=funB(),return=1]{A}
\end{umlcallself}

\end{umlcallself}

\end{umlseqdiag}
\end{tikzpicture} 
\end{document}
Beatlej
  • 1,723

1 Answers1

2

Compilation error is now solved. I will make soon a new release of tikz-uml.