Chapter 5 Building Dynamic Diagrams


Creating Create messages

A message can create an object if it is the first message received by the object and you set its Action property to "Create".

You cannot create an actor or use the create action with a recursive message.

When a message creates an object in a sequence diagram, the message is drawn with its arrowhead on the object; both object and message are at the same level.

In a sequence diagram, you can also create a create message automatically as follows:

Steps To create a create message:

  1. Click the Message tool in the Palette.
  2. Click the lifeline of the sender object or actor and, while holding down the mouse button, drag the cursor towards the receiver object.
  3. Release the mouse button on the object symbol of the receiver (and not on its lifeline).

    If the message is the first message to be received by the receiver object, the receiver object symbol moves down to line up with the create message.


 


Copyright (C) 2006. Sybase Inc. All rights reserved.