Skip to content
Mermaid templates

Activity Diagram

Workflow of activities with decisions and parallelism.

Template previewMermaid
Rendering…

What this template contains

Diagram type
Flowchart
Source
13 lines

When to use it

Choose this for an order-processing workflow with several decisions and exception paths. Review the stock and payment branches and where work rejoins; a line of boxes would hide the backorder and cancellation outcomes. Compare it in flowchart and workflow templates

Make it your own.

flowchart TD
    Start([Start]) --> A[Receive Order]
    A --> B{In stock?}
    B -- yes --> C[Reserve Inventory]
    B -- no --> D[Backorder]
    C --> E[Charge Card]
    D --> F[Notify Customer]
    E --> G{Charge OK?}
    G -- yes --> H[Ship Package]
    G -- no --> I[Cancel Order]
    H --> End([Done])
    I --> End
    F --> End