A Receive element is used to define the acceptance or receipt of a request, in an Activity diagram. Movement from a Receive element occurs only once receipt is fulfilled according to its specification. The Receive element comes in two forms:
- Accept Event Action element (pennant shape)
- Accept Time Event Action element (hourglass shape)
This example reflects a payment process on an order. Upon receiving the payment (from Request Payments, a Send element), the payment is confirmed and the flow continues to ship the order.
See the OMG Unified Modeling Language specification, (v2.5.1, figure 12.26, p.312.)
To depict an Accept Time Event, use the standard Receive element from the Toolbox. Right-click on this element, and select the 'Advanced | Accept Time Event' option. This example shows the hourglass-shaped Accept Time Event Action:
See The OMG Unified Modeling Language specification, (v2.5.1, figure 12.27, p.312.)
OMG UML Specification
The OMG Unified Modeling Language specification, (v2.5.1, p.489) states:
An AcceptEventAction is an Action that waits for the occurrence of one or more specific Events.