Book a Demo

Author Topic: looping in sequence diagram?  (Read 32548 times)

Duc-bert

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
looping in sequence diagram?
« on: July 17, 2002, 07:03:53 pm »
 :)

Hi,

in EA, how do I specify a loop in sequence diagram?

thanks

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: looping in sequence diagram?
« Reply #1 on: July 20, 2002, 04:13:47 am »
Hi,

In the Sequence diagram toolbar there is an element called 'Iteration'. Drag one onto your diagram ... it is a modified boundary object and may have a looping condition set to indicate the exit condition for a repeated sequence. Enlarge the Iteration element to encompass the set of message which will execute during the loop cycly. To make things easier for you, Z-Order the Iteration to the base of the diagram - and using the context menu, make it non-selectable. Now you can work over the Iteration element without constantly picking it up by mistake.

Hope this is useful,
Geoff Sparks

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: looping in sequence diagram?
« Reply #2 on: July 26, 2002, 11:41:14 am »
Probably the simplest way to loop in a sequence diagram is to check "Is Iteration" in Message Properties. (To get toMessage Properties, double-click on the message arrow).

The condition ("if xyz ...) can be specified in the Condition box text. You should create the Return message (that is, the message that closes the loop) by creating a new message below the one that has the condition, and then marking it as "Is Return" in Message Properties.

The iteration box which box which G Sparx mentioned can be very useful in case you want to encompass imbeded conditions (or embeded behaviour) in-between the message and its return, but it is not necessary if you have a simple loop.

Hope this is useful!