01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

196<br />

Saturday Evening<br />

pointing toward the receiver, in this case the OrderFulfillmentClerk. Label the event arrow<br />

with the sequence number and operation. Figure 19-4 shows both the message sent in<br />

step 1 and the answer received in step 2. The return arrow uses a dashed line style arrow.<br />

Label the return with the sequence number and the data being returned.<br />

:OrderFullfillment Clerk<br />

1 : getOrderNbr():int<br />

2 : return 12345678<br />

:System<br />

Figure 19-4 Modeling a synchronous event and the reply<br />

In the second step of the flowchart, the System tries to find the Order in the Orders<br />

database. In Figure 19-5, sequence # 3 from System to OrdersDB is a synchronous message<br />

because the System will wait for the answer to the find request. The return in sequence #4<br />

is an Order object, the same Order object that you put on the diagram at the start.<br />

:OrderFullfillment Clerk<br />

:OrdersDB<br />

4 : return 12345678<br />

1 : getOrderNbr():int<br />

3 : getOrder(ordernbr.int) : Order<br />

2 : return 12345678<br />

:System<br />

Figure 19-5<br />

Modeling the second step in the flowchart: Find the Order

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!