Book a Demo

Author Topic: Recursive calls on Sequence Diagram  (Read 8715 times)

sbaishya

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Recursive calls on Sequence Diagram
« on: January 29, 2002, 06:48:29 am »
How does one show the following on a sequence diagram:

Object 1 calls Method A on Object 2.
Method A on Object 2 calls Method B on Object 1.

When I try to document this in EA, it seems to think that the call to Method B is actually Method A returning...

I guess what I'm asking is how do you represent parallel activities on an object?

Thanks,

Stephen Baishya

sbaishya

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Recursive calls on Sequence Diagram
« Reply #1 on: February 01, 2002, 01:37:35 am »
Perhaps I had better provide an example. This is not quite the same, but if you look at Figure 36 at http://www.informatik.fh-luebeck.de/~st/UML/UML1.1/notation7.html, ob4:C4 shows activities running in parallel. What I wondered was how to do this in EA.

Thanks

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Recursive calls on Sequence Diagram
« Reply #2 on: February 02, 2002, 04:32:27 am »
Hi,

By default messages from right to left are marked as return ... this is only a convenience method ... you can bring up the message properties for the recursive call and deselect the "Is Return" check box. This indicates that a callback is being made and the message will no longer be dotted or act as a return.

Does this answer your question?


Geoff Sparks


sbaishya

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Recursive calls on Sequence Diagram
« Reply #3 on: February 04, 2002, 01:04:31 am »
Geoff,

I have tried your suggestion, but the model still only shows one activity bar on the object being called recursively. I note that if an object calls itself recursively an additional activity bar is shown in parallel to the original one - I was hoping for something like this.

On that topic, I note that when that additional activity bar is shown one cannot select which activity bar is the source of a further call. Is there a way of doing this?

Regards,

Stephen