即時庫存同步
System ↔ SystemPOS 交易事件觸發庫存更新、倉庫同步及自動補貨。
5 個節點 · 4 條連接retail
eventdbapi
視覺化
POS 交易事件event
從銷售終端機擷取銷售、退貨或作廢記錄。
↓sequential→ 庫存資料庫更新
庫存資料庫更新db
在庫存資料庫中遞增或遞減 SKU 數量。
↓sequential→ 倉庫同步
↓parallel→ 補貨閾值檢查
倉庫同步api
將更新後的數量推送至倉庫管理系統。
補貨閾值檢查system
依最低庫存量及前置時間規則評估 SKU 數量。
↓conditional→ 自動補貨 API 呼叫
自動補貨 API 呼叫api
向供應商 EDI 端點提交採購訂單。
uc-inventory-sync.osop.yaml
osop_version: "1.0"
id: "inventory-sync"
name:"即時庫存同步"
description:"POS 交易事件觸發庫存更新、倉庫同步及自動補貨。"
nodes:
- id: "pos_event"
type: "event"
name: "POS 交易事件"
description: "從銷售終端機擷取銷售、退貨或作廢記錄。"
- id: "inventory_update"
type: "db"
name: "庫存資料庫更新"
description: "在庫存資料庫中遞增或遞減 SKU 數量。"
security:
risk_level: "medium"
- id: "warehouse_sync"
type: "api"
subtype: "rest"
name: "倉庫同步"
description: "將更新後的數量推送至倉庫管理系統。"
retry_policy:
max_attempts: 3
backoff: "exponential"
timeout_sec: 30
- id: "threshold_check"
type: "system"
name: "補貨閾值檢查"
description: "依最低庫存量及前置時間規則評估 SKU 數量。"
- id: "auto_replenish"
type: "api"
subtype: "rest"
name: "自動補貨 API 呼叫"
description: "向供應商 EDI 端點提交採購訂單。"
timeout_sec: 45
edges:
- from: "pos_event"
to: "inventory_update"
mode: "sequential"
- from: "inventory_update"
to: "warehouse_sync"
mode: "sequential"
- from: "inventory_update"
to: "threshold_check"
mode: "parallel"
- from: "threshold_check"
to: "auto_replenish"
mode: "conditional"
when: "quantity <= reorder_point"