fix mermaid
This commit is contained in:
parent
c01c510be7
commit
d7cc366d15
29
docs/flow.md
29
docs/flow.md
|
|
@ -74,7 +74,7 @@ Let's see how it flows:
|
||||||
flowchart TD
|
flowchart TD
|
||||||
review[Review Expense] -->|approved| payment[Process Payment]
|
review[Review Expense] -->|approved| payment[Process Payment]
|
||||||
review -->|needs_revision| revise[Revise Report]
|
review -->|needs_revision| revise[Revise Report]
|
||||||
review -->|rejected| finish[End Process]
|
review -->|rejected| finish[Finish Process]
|
||||||
|
|
||||||
revise --> review
|
revise --> review
|
||||||
payment --> finish
|
payment --> finish
|
||||||
|
|
@ -146,20 +146,21 @@ order_pipeline.run(shared_data)
|
||||||
This creates a clean separation of concerns while maintaining a clear execution path:
|
This creates a clean separation of concerns while maintaining a clear execution path:
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart TD
|
flowchart LR
|
||||||
|
subgraph order_pipeline[Order Pipeline]
|
||||||
|
subgraph paymentFlow["Payment Flow"]
|
||||||
|
A[Validate Payment] --> B[Process Payment] --> C[Payment Confirmation]
|
||||||
|
end
|
||||||
|
|
||||||
subgraph paymentFlow["Payment Flow"]
|
subgraph inventoryFlow["Inventory Flow"]
|
||||||
A[Validate Payment] --> B[Process Payment] --> C[Payment Confirmation]
|
D[Check Stock] --> E[Reserve Items] --> F[Update Inventory]
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph inventoryFlow["Inventory Flow"]
|
subgraph shippingFlow["Shipping Flow"]
|
||||||
D[Check Stock] --> E[Reserve Items] --> F[Update Inventory]
|
G[Create Label] --> H[Assign Carrier] --> I[Schedule Pickup]
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph shippingFlow["Shipping Flow"]
|
paymentFlow --> inventoryFlow
|
||||||
G[Create Label] --> H[Assign Carrier] --> I[Schedule Pickup]
|
inventoryFlow --> shippingFlow
|
||||||
end
|
end
|
||||||
|
|
||||||
paymentFlow --> inventoryFlow
|
|
||||||
inventoryFlow --> shippingFlow
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue