Search code examples
umldiagramsequence-diagram

Successive intern calls in sequence diagrams


I'm creating some sequence diagram and i want to detail my calls, but there is a class which call successively intern functions, would it be ok if i draw it this way:

enter image description here

If not how could i do ?

thanks !


Solution

  • No, that's syntactically simply wrong. You would use a Loop Fragment:

    enter image description here

    funcA is an internal call. Inside the two operations funcB and funcC will be called in a loop which is guarded by the condition some condition. This could as well be N times or whatever constraints the loop.