{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "CH 收款證據登記",
    "quality_profile": "showcase",
    "legend": { "entries": { "frontend": { "label": "輸入／入口" }, "backend": { "label": "處理結果" }, "security": { "label": "條件／分支" } } }
  },
  "lanes": [
    {
      "id": "main",
      "label": "本概念主線"
    },
    {
      "id": "alternate",
      "label": "另一結果",
      "variant": "exception"
    }
  ],
  "mainPath": [
    "deposit-ch-receipt-input",
    "deposit-ch-receipt-gate",
    "deposit-ch-receipt-result"
  ],
  "nodes": [
    {
      "id": "deposit-ch-receipt-input",
      "lane": "main",
      "col": 0,
      "type": "frontend",
      "label": "CH receipt",
      "sublabel": "verifier／storage",
      "width": 164
    },
    {
      "id": "deposit-ch-receipt-gate",
      "lane": "main",
      "col": 2,
      "type": "security",
      "label": "可信且可登記？",
      "sublabel": "scope／binding",
      "width": 164
    },
    {
      "id": "deposit-ch-receipt-result",
      "lane": "main",
      "col": 4,
      "type": "backend",
      "label": "保存 receipt",
      "sublabel": "另步確認／裁決",
      "width": 164
    },
    {
      "id": "deposit-ch-receipt-alternate",
      "lane": "alternate",
      "col": 2,
      "type": "security",
      "label": "拒絕／rollback",
      "sublabel": "不覆寫 evidence",
      "width": 164
    }
  ],
  "edges": [
    {
      "id": "deposit-ch-receipt-check",
      "from": "deposit-ch-receipt-input",
      "to": "deposit-ch-receipt-gate",
      "label": "核對",
      "role": "main"
    },
    {
      "id": "deposit-ch-receipt-yes",
      "from": "deposit-ch-receipt-gate",
      "to": "deposit-ch-receipt-result",
      "label": "通過",
      "variant": "emphasis",
      "role": "main"
    },
    {
      "id": "deposit-ch-receipt-no",
      "from": "deposit-ch-receipt-gate",
      "to": "deposit-ch-receipt-alternate",
      "label": "未通過",
      "variant": "security",
      "role": "branch"
    }
  ]
}
