Process flow
Follow the Sale example application process flow with compensation actions included.
Figure 1. Process flow with compensation actions included. (The root activity is not shown.)
Changes from the user-related
example described in
Interacting with BTS processes and activities
are
shown in bold.


- The terminal user enters the customer's order, which is accepted.
- The goods are delivered to the customer.
- The terminal user confirms that the goods have been delivered.
- An invoice is sent to the customer.
- A reminder is sent if payment has not been received within one week of the invoice being sent.
- If payment has still not been received two weeks after the reminder
was sent, compensation is triggered. Compensation causes the
following:
- The outstanding payment request is canceled.
- A letter is sent, requesting the goods to be returned.
- Confirmation that the goods have been returned is requested.
- The order is canceled.