Diagram

YesNoSubmit orderValidate orderWithinbudget?ManagerapprovalRevise orderOrder placed
Start or endStepDecisionRework

Pick a box or a line to see only what it connects to.

Notes

Within budget?
Compares the order total with what is left in the budget.
Revise order
The requester changes the order, then it is validated again.
Mermaid source
flowchart TD
  A([Submit order]) --> B[Validate order]
  B --> C{Within budget?}
  C -->|Yes| D[Manager approval]
  C -->|No| E[Revise order]
  E --> B
  D --> F([Order placed])
  class E rework

  %% note C: Compares the order total with what is left in the budget.
  %% note E: The requester changes the order, then it is validated again.
  %% step: The straight path | A>B>C>D>F | Within budget, so it goes to the manager.
  %% step: The revision loop | loop 1 | Over budget, so the requester revises and it is validated again.