Chapter 5 Building Dynamic Diagrams
A message is recursive when the object sends the message to itself. In this case, the arrow starts and finishes on the lifeline of the same object.
The Create and Self-Destroy actions, and the Support delay option are not available with a recursive message.
When you create Undefined or Return recursive messages from the tool palette, the control flow value is already selected:
Message type | Symbol |
---|---|
Undefined recursive message | |
Return recursive message |
You can also create an Undefined recursive message and change the control flow value afterwards.
You can choose to create a recursive message with or without activation from the tool palette.
When you create a recursive message with activation, the recursive message is automatically attached to an activation and its control flow value is a Procedure Call which, by default, starts the activation.
Activation symbols are automatically created on the object lifeline as shown below:
To create a recursive message without activation:
To create a recursive message with activation:
Copyright (C) 2005. Sybase Inc. All rights reserved. |