---
# System prepended metadata

title: Sequence Diagram

---

# Sequence Diagram

```mermaid
    sequenceDiagram
	participant Customer
	participant Search Page
    participant Search Results Page
	participant Catalog
	participant Search Results
	activate Customer
	Customer->>Search Page: onSeach(author)
	activate Search Page
	Search Page->>Search Page: 1.1: validateSearchCriteria()
	alt author entered
        Search Page->>Catalog: 1.2: searchByAuthor(author)
		activate Catalog
		Catalog->>Search Results: 1.2.1: create()
		activate Search Results
		Search Results->>Search Results Page: 1.2.1.1: display()
		activate Search Results Page
		deactivate Search Results Page
		deactivate Search Results
    else author not entered
		deactivate Catalog
        Search Page->>Search Page: 1.3: displayErrorMessage()
    deactivate Search Page
	end
	deactivate Customer
	
```
### Link: https://bom.to/lwBl8W

