Example of the enterprise secure dynamic model
Throughout this book, we will build a secure design for an event ticketing system. Envision a software system that allows a box office or a website to sell tickets to a famous musical concert or theatre event.
Figure 4.15 shows an example sequence diagram for a simple ticket purchase:
Figure 4.15 – Sequence diagram for ticket purchase
In the diagram, the patron requests to add tickets to the order. The Order
class passes the request on to the ticket class for each ticket to lock the ticket so others cannot purchase. After the tickets are locked, the patron requests to create a login. The login is passed onto the Person
class. Next, the patron pays with a credit card. The message is passed from the Order
class to the Payment
class, and we see the stereotype and OCL pre-condition marked in the note. At the end, a confirmation page is passed back to the patron.
Figure 4.16 shows an activity diagram...