{
  "name": "AUT-204 همگام‌سازی سفارش‌ها (پایش‌شده)",
  "nodes": [
    {
      "parameters": {
        "content": "## ورک‌فلوی پایش‌شده\n• تنظیمات: Error workflow = هشدار شکست\n• آخرین گره: ضربان قلب؛ فقط وقتی همه چیز درست تمام شد ثبت می‌شود\n• ناظر بیرونی اگر ضربان قدیمی شد هشدار می‌دهد (حتی وقتی خود n8n خاموش است)\n• /flaky دو بار 503 می‌دهد و بار سوم 200: قطعی و بازگشت",
        "height": 230,
        "width": 460,
        "color": 4
      },
      "id": "234f45e8-fdd3-5939-8610-2a720a73ae6c",
      "name": "یادداشت 1",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -340
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 1
            }
          ]
        }
      },
      "id": "5c3b0100-60b3-52b3-8ba3-4ac1158cec2f",
      "name": "هر دقیقه (آزمایشی)",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        100
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "http://127.0.0.1:8787/flaky",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "id": "61e5198c-c8b9-5afe-aed7-331e54458da2",
      "name": "دریافت سفارش‌ها از سرویس",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        240,
        100
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "aa05db4bc8085d30",
          "name": "Barg Sabz mock API (Header Auth)"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://127.0.0.1:8787/heartbeat/order-sync",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "id": "bcb02d9c-6e36-53bc-9cb6-49b1dc893399",
      "name": "ضربان قلب (فقط پس از موفقیت)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        480,
        100
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "aa05db4bc8085d30",
          "name": "Barg Sabz mock API (Header Auth)"
        }
      }
    }
  ],
  "connections": {
    "هر دقیقه (آزمایشی)": {
      "main": [
        [
          {
            "node": "دریافت سفارش‌ها از سرویس",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "دریافت سفارش‌ها از سرویس": {
      "main": [
        [
          {
            "node": "ضربان قلب (فقط پس از موفقیت)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "errorWorkflow": "LkyA204ErrAlrt01"
  },
  "id": "LkyA204OrdSync01",
  "meta": {
    "templateCredsSetupCompleted": false,
    "instanceId": "lookiyar-academy-demo"
  },
  "tags": [
    {
      "name": "loOkiYar Academy"
    },
    {
      "name": "AUT-204"
    }
  ],
  "pinData": {}
}