Online order processing flowchart
A shop order going through payment, stock check and dispatch, with the exception path that cancels payment when stock is out.
The diagram
Reading it step by step
- 1. Start at 'Start'.
- 2. 'Fill in the order' is an input or output. Next: 'Request payment'.
- 3. 'Request payment' is a processing step. Next: 'Payment approved?'.
- 4. Decide 'Payment approved?': if 'failed', go to 'Tell payment failed'; if 'approved', go to 'Check stock'.
- 5. 'Tell payment failed' is a processing step. Next: 'End'.
- 6. End at 'End'.
- 7. 'Check stock' reads or writes the data store. Next: 'In stock?'.
- 8. Decide 'In stock?': if 'no', go to 'Cancel payment, tell sold out'; if 'yes', go to 'Order dispatch'.
- 9. 'Cancel payment, tell sold out' is a processing step. Next: 'End'.
- 10. 'Order dispatch' is a processing step. Next: 'Notify shipping'.
- 11. 'Notify shipping' is a processing step. Next: 'End'.
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| Start | Terminator | → Fill in the order |
| Fill in the order | Input/output | → Request payment · ← Start |
| Request payment | Process | → Payment approved? · ← Fill in the order |
| Payment approved? | Decision | → Tell payment failed(failed), Check stock(approved) · ← Request payment |
| Tell payment failed | Process | → End · ← Payment approved? |
| End | Terminator | ← Tell payment failed, Cancel payment, tell sold out, Notify shipping |
| Check stock | Stored data | → In stock? · ← Payment approved? |
| In stock? | Decision | → Cancel payment, tell sold out(no), Order dispatch(yes) · ← Check stock |
| Cancel payment, tell sold out | Process | → End · ← In stock? |
| Order dispatch | Process | → Notify shipping · ← In stock? |
| Notify shipping | Process | → End · ← Order dispatch |
Symbols used here
| Symbol | Meaning |
|---|---|
| Terminator | Where the flow starts or ends; a rounded rectangle. |
| Process | One action such as a calculation; a rectangle. |
| Decision | A question whose answer picks the next path; a diamond. |
| Input/output | Data comes in or goes out; a parallelogram. |
| Stored data | Reads or writes a database or file; a cylinder. |
| Flow line | The order of steps, in the arrow direction. |
Diagram text
Paste this text into the editor to get the same picture, then change the names to fit your own work.
# Online order processing flowchart
flowchart TD
s(["Start"])
a[/"Fill in the order"/]
b["Request payment"]
c{"Payment approved?"}
d["Tell payment failed"]
z(["End"])
e[("Check stock")]
f{"In stock?"}
g["Cancel payment, tell sold out"]
h["Order dispatch"]
i["Notify shipping"]
s --> a
a --> b
b --> c
c -->|failed| d
d --> z
c -->|approved| e
e --> f
f -->|no| g
g --> z
f -->|yes| h
h --> i
i --> z