Activity diagram

The scenario for this sample is a delivery service. Upon receiving customer information and a list of goods that have to be delivered, the delivery service initiates the shipping of the goods and the billing of the customer. Subsequently, the service monitors the progress of the shipment and the billing until the processing is completed and the order can be filed.

The following activity diagram is a high-level description of the steps that are executed in the delivery process. This process interacts with two other processes: the charging service and the shipping service. The delivery service sends and receives messages to and from both services.

 

step1 The delivery process starts when a process client sends a customer ID and a job number.

The delivery service receives a message from the client specifying which goods have to be delivered.

The delivery process triggers the shipment of the goods by calling the shipping process. As a result of this invocation the shipping process returns the shipping price, which will be charged to the customer in a later step.

This step triggers the charging process to charge the customer.
The charging process sends an acknowledgement, as soon as charging is complete.

Several informative messages are sent by the shipping process to inform the delivery process about the status of the shipping.

After all acknowledgements and informative messages have arrived, the delivery job will be filed and the process will finish.

Delivery scenario