bpmn

bpmn

熱門

使用 PlantUML 語法搭配 BPMN、EIP 與 Lean Mapping 圖示,建立商業流程圖。適用於工作流程自動化、簽核鏈、訊息整合模式與價值流程圖。

3094星標
178分支
更新於 2026/5/26
SKILL.md
唯讀
名稱
bpmn
描述

使用 PlantUML 語法搭配 BPMN、EIP 與 Lean Mapping 圖示,建立商業流程圖。適用於工作流程自動化、簽核鏈、訊息整合模式與價值流程圖。

商業流程與整合圖表產生器

快速入門: 選擇圖表類型 → 宣告事件/閘道/任務的圖示 → 分組至泳池/泳道 → 使用箭頭語法連接 → 包在 ```plantuml 程式碼區塊中。

⚠️ 重要: 務必使用 ```plantuml```puml 程式碼區塊。絕對不要使用 ```text — 否則不會顯示為圖表。

關鍵規則

  • 每個圖表以 @startuml 開頭,以 @enduml 結尾
  • 使用 left to right direction 讓流程由左至右閱讀
  • 使用 mxgraph.bpmn.* 表示 BPMN 事件、閘道與任務標記
  • 使用 mxgraph.eip.* 表示企業整合模式圖示
  • 使用 mxgraph.lean_mapping.* 表示價值流程圖符號
  • 預設顏色會自動套用 — 無需指定 fillColorstrokeColor
  • 使用 rectangle "Pool" { ... } 表示 BPMN 泳池與泳道
  • 順序流使用 -->,訊息流使用 ..>(虛線)

完整圖示參考: 請參閱 stencils/README.md 取得 9500+ 可用圖示。

Mxgraph 圖示語法

mxgraph.<library>.<icon> "Label" as <alias>

BPMN 圖示系列(mxgraph.bpmn.*

事件 — 圓形,表示流程觸發與結果:

圖示 意義
mxgraph.bpmn.event.start 開始事件
mxgraph.bpmn.event.end 結束事件
mxgraph.bpmn.event.terminateEnd 終止結束
mxgraph.bpmn.event.timerStart 計時開始
mxgraph.bpmn.event.timerCatching 計時中間
mxgraph.bpmn.event.messageStart 訊息開始
mxgraph.bpmn.event.messageCatching 訊息捕捉
mxgraph.bpmn.event.messageEnd 訊息結束
mxgraph.bpmn.event.errorEnd 錯誤結束
mxgraph.bpmn.event.errorBound 錯誤邊界
mxgraph.bpmn.event.signalStart 訊號開始
mxgraph.bpmn.event.signalEnd 訊號結束

閘道 — 菱形,用於分支/合併:

圖示 意義
mxgraph.bpmn.gateway2.exclusive 獨佔閘道(XOR)
mxgraph.bpmn.gateway2.parallel 平行閘道(AND)
mxgraph.bpmn.gateway2.inclusive 包容閘道(OR)
mxgraph.bpmn.gateway2.complex 複雜閘道

任務 — 使用 rectangle 表示任務,圖示標記表示類型:

圖示 意義
mxgraph.bpmn.user_task 使用者任務
mxgraph.bpmn.service_task 服務任務
mxgraph.bpmn.script_task 腳本任務
mxgraph.bpmn.manual_task 手動任務
mxgraph.bpmn.business_rule_task 商業規則任務

資料 — 文件形狀:

圖示 意義
mxgraph.bpmn.data2.dataObject 資料物件
mxgraph.bpmn.data2.dataInput 資料輸入
mxgraph.bpmn.data2.dataOutput 資料輸出

EIP 圖示系列(mxgraph.eip.*

圖示 意義
mxgraph.eip.messageChannel 訊息通道
mxgraph.eip.deadLetterChannel 死信通道
mxgraph.eip.content_based_router 內容型路由器
mxgraph.eip.message_filter 訊息過濾器
mxgraph.eip.splitter 分割器
mxgraph.eip.aggregator 聚合器
mxgraph.eip.message_translator 訊息轉換器
mxgraph.eip.content_enricher 內容增強器
mxgraph.eip.messaging_gateway 訊息閘道
mxgraph.eip.channel_adapter 通道適配器
mxgraph.eip.messaging_bridge 訊息橋接器
mxgraph.eip.recipient_list 接收者清單
mxgraph.eip.wire_tap 線路監聽
mxgraph.eip.event_driven_consumer 事件驅動消費者
mxgraph.eip.competing_consumers 競爭消費者
mxgraph.eip.process_manager 流程管理器

Lean Mapping 圖示系列(mxgraph.lean_mapping.*

圖示 意義
mxgraph.lean_mapping.outside_sources 供應商/客戶
mxgraph.lean_mapping.manufacturing_process 製程步驟
mxgraph.lean_mapping.supermarket 超市(庫存緩衝)
mxgraph.lean_mapping.fifo_lane FIFO 通道
mxgraph.lean_mapping.production_kanban 生產看板
mxgraph.lean_mapping.withdrawal_kanban 領料看板
mxgraph.lean_mapping.signal_kanban 訊號看板
mxgraph.lean_mapping.truck_shipment 卡車運輸
mxgraph.lean_mapping.operator 作業員
mxgraph.lean_mapping.inventory_box 庫存
mxgraph.lean_mapping.kaizen_lightening_burst 改善爆發
mxgraph.lean_mapping.mrp_erp MRP/ERP 系統
mxgraph.lean_mapping.warehouse 倉庫
mxgraph.lean_mapping.push_arrow 推送箭頭
mxgraph.lean_mapping.timeline2 時間軸

連線類型

語法 意義 使用情境
A --> B 實線箭頭 順序流(任務→任務)
A ..> B 虛線箭頭 訊息流(跨泳池)/ 非同步觸發
A --> B : "label" 標籤實線 條件流(閘道分支)
A ..> B : "label" 標籤虛線 命名訊息/訊號

快速範例

@startuml
left to right direction

mxgraph.bpmn.event.start "Start" as start
rectangle "Review\nRequest" as review
mxgraph.bpmn.gateway2.exclusive "Approved?" as gw
rectangle "Process\nOrder" as process
rectangle "Notify\nRejection" as reject
mxgraph.bpmn.event.end "End" as end_ok
mxgraph.bpmn.event.end "End" as end_fail

start --> review
review --> gw
gw --> process : "Yes"
gw --> reject : "No"
process --> end_ok
reject --> end_fail
@enduml

圖表類型

類型 用途 主要圖示 範例
訂單處理 電子商務/訂單履行 mxgraph.bpmn.event.*, mxgraph.bpmn.gateway2.* order-processing.md
簽核流程 多層級簽核 mxgraph.bpmn.event.*, mxgraph.bpmn.gateway2.* approval-workflow.md
EIP 訊息傳遞 訊息路由與轉換 mxgraph.eip.* eip-messaging.md
ETL 管線 資料擷取與載入 mxgraph.bpmn.event.*, mxgraph.eip.* etl-pipeline.md
價值流程 精實製造流程 mxgraph.lean_mapping.* value-stream.md
微服務編排 服務編排 mxgraph.bpmn.event.*, mxgraph.eip.* microservice-orchestration.md
事件驅動架構 發布/訂閱事件流 mxgraph.bpmn.event.*, mxgraph.eip.* event-driven.md
客戶服務 支援工單生命週期 mxgraph.bpmn.event.*, mxgraph.bpmn.gateway2.* customer-service.md