{
  "id": "purchase-approval",
  "name": "Purchase approval",
  "boundary": "Begins with a purchase request; ends with an issued order or a returned denial. Delivery and payment are separate.",
  "lanes": [
    "Requester",
    "Procurement",
    "Budget owner"
  ],
  "nodes": [
    {
      "id": "P1",
      "owner": "Requester",
      "label": "Submit specification and quote",
      "type": "task"
    },
    {
      "id": "P2",
      "owner": "Procurement",
      "label": "Request complete?",
      "type": "decision"
    },
    {
      "id": "P3",
      "owner": "Requester",
      "label": "Add missing detail",
      "type": "task"
    },
    {
      "id": "P4",
      "owner": "Budget owner",
      "label": "Approve spend and authority?",
      "type": "decision"
    },
    {
      "id": "P5",
      "owner": "Procurement",
      "label": "Record rejection and return reason",
      "type": "end"
    },
    {
      "id": "P6",
      "owner": "Procurement",
      "label": "Supplier valid for order?",
      "type": "decision"
    },
    {
      "id": "P7",
      "owner": "Requester",
      "label": "Resolve supplier or specification issue",
      "type": "task"
    },
    {
      "id": "P8",
      "owner": "Procurement",
      "label": "Send purchase order and record commitment",
      "type": "end"
    }
  ],
  "edges": [
    {
      "source": "P1",
      "target": "P2",
      "condition": "Request"
    },
    {
      "source": "P2",
      "target": "P3",
      "condition": "Incomplete"
    },
    {
      "source": "P3",
      "target": "P2",
      "condition": "Resubmitted"
    },
    {
      "source": "P2",
      "target": "P4",
      "condition": "Complete"
    },
    {
      "source": "P4",
      "target": "P5",
      "condition": "Denied"
    },
    {
      "source": "P4",
      "target": "P6",
      "condition": "Approved"
    },
    {
      "source": "P6",
      "target": "P7",
      "condition": "Validation failed"
    },
    {
      "source": "P7",
      "target": "P2",
      "condition": "Material change: review again"
    },
    {
      "source": "P6",
      "target": "P8",
      "condition": "Supplier valid"
    }
  ],
  "handoffAcceptance": "A material quote or specification change goes back to the completeness check and budget approval. Approval of one version does not authorize every revision.",
  "exampleTrace": "P1 \u2192 P2 \u2192 P4 \u2192 P6 \u2192 P7 \u2192 P2 \u2192 P4 \u2192 P6 \u2192 P8. Supplier validation triggers a revised request and a fresh approval."
}
