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}
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.