bpmn

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Business Process & Integration Diagram Generator

业务流程与集成图生成器

Quick Start: Choose diagram type → Declare stencil icons for events/gateways/tasks → Group into pools/lanes → Connect with arrow syntax → Wrap in
```plantuml
fence.
⚠️ IMPORTANT: Always use
```plantuml
or
```puml
code fence. NEVER use
```text
— it will NOT render as a diagram.
快速开始: 选择图表类型 → 声明事件/网关/任务对应的模板图标 → 分组到池/泳道中 → 使用箭头语法连接元素 → 包裹在
```plantuml
代码块内。
⚠️ 重要提示: 请始终使用
```plantuml
```puml
代码块,切勿使用
```text
—— 后者无法渲染为图表。

Critical Rules

核心规则

  • Every diagram starts with
    @startuml
    and ends with
    @enduml
  • Use
    left to right direction
    for process flows (start→end reads left-to-right)
  • Use
    mxgraph.bpmn.*
    for BPMN events, gateways, and task markers
  • Use
    mxgraph.eip.*
    for Enterprise Integration Pattern icons
  • Use
    mxgraph.lean_mapping.*
    for Value Stream Mapping symbols
  • Default colors are applied automatically — you do NOT need to specify
    fillColor
    or
    strokeColor
  • Use
    rectangle "Pool" { ... }
    for BPMN pools and lanes
  • Sequence flows use
    -->
    , message flows use
    ..>
    (dashed)
Full stencil reference: See stencils/README.md for 9500+ available icons.
  • 所有图表以
    @startuml
    开头,以
    @enduml
    结尾
  • 流程流使用
    left to right direction
    配置(从左到右读取开始→结束的流程)
  • BPMN事件、网关和任务标记使用
    mxgraph.bpmn.*
    前缀
  • 企业集成模式图标使用
    mxgraph.eip.*
    前缀
  • 价值流映射符号使用
    mxgraph.lean_mapping.*
    前缀
  • 默认颜色会自动应用,无需手动指定
    fillColor
    strokeColor
  • BPMN池和泳道使用
    rectangle "Pool" { ... }
    声明
  • 序列流使用
    -->
    ,消息流使用
    ..>
    (虚线)
完整模板参考: 查看 stencils/README.md 获取9500+可用图标。

Mxgraph Stencil Syntax

Mxgraph模板语法

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

BPMN Stencil Family (
mxgraph.bpmn.*
)

BPMN模板族 (
mxgraph.bpmn.*
)

Events — Circle shapes for process triggers and outcomes:
IconMeaning
mxgraph.bpmn.event.start
Start Event
mxgraph.bpmn.event.end
End Event
mxgraph.bpmn.event.terminateEnd
Terminate End
mxgraph.bpmn.event.timerStart
Timer Start
mxgraph.bpmn.event.timerCatching
Timer Intermediate
mxgraph.bpmn.event.messageStart
Message Start
mxgraph.bpmn.event.messageCatching
Message Catching
mxgraph.bpmn.event.messageEnd
Message End
mxgraph.bpmn.event.errorEnd
Error End
mxgraph.bpmn.event.errorBound
Error Boundary
mxgraph.bpmn.event.signalStart
Signal Start
mxgraph.bpmn.event.signalEnd
Signal End
Gateways — Diamond shapes for branching/merging:
IconMeaning
mxgraph.bpmn.gateway2.exclusive
Exclusive Gateway (XOR)
mxgraph.bpmn.gateway2.parallel
Parallel Gateway (AND)
mxgraph.bpmn.gateway2.inclusive
Inclusive Gateway (OR)
mxgraph.bpmn.gateway2.complex
Complex Gateway
Tasks — Use
rectangle
for tasks, stencil markers for typed tasks:
IconMeaning
mxgraph.bpmn.user_task
User Task
mxgraph.bpmn.service_task
Service Task
mxgraph.bpmn.script_task
Script Task
mxgraph.bpmn.manual_task
Manual Task
mxgraph.bpmn.business_rule_task
Business Rule Task
Data — Document-like shapes:
IconMeaning
mxgraph.bpmn.data2.dataObject
Data Object
mxgraph.bpmn.data2.dataInput
Data Input
mxgraph.bpmn.data2.dataOutput
Data Output
事件 — 表示流程触发和结果的圆形元素:
图标含义
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 Stencil Family (
mxgraph.eip.*
)

EIP模板族 (
mxgraph.eip.*
)

IconMeaning
mxgraph.eip.messageChannel
Message Channel
mxgraph.eip.deadLetterChannel
Dead Letter Channel
mxgraph.eip.content_based_router
Content-Based Router
mxgraph.eip.message_filter
Message Filter
mxgraph.eip.splitter
Splitter
mxgraph.eip.aggregator
Aggregator
mxgraph.eip.message_translator
Message Translator
mxgraph.eip.content_enricher
Content Enricher
mxgraph.eip.messaging_gateway
Messaging Gateway
mxgraph.eip.channel_adapter
Channel Adapter
mxgraph.eip.messaging_bridge
Messaging Bridge
mxgraph.eip.recipient_list
Recipient List
mxgraph.eip.wire_tap
Wire Tap
mxgraph.eip.event_driven_consumer
Event-Driven Consumer
mxgraph.eip.competing_consumers
Competing Consumers
mxgraph.eip.process_manager
Process Manager
图标含义
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 Stencil Family (
mxgraph.lean_mapping.*
)

精益映射模板族 (
mxgraph.lean_mapping.*
)

IconMeaning
mxgraph.lean_mapping.outside_sources
Supplier / Customer
mxgraph.lean_mapping.manufacturing_process
Process Step
mxgraph.lean_mapping.supermarket
Supermarket (Inventory Buffer)
mxgraph.lean_mapping.fifo_lane
FIFO Lane
mxgraph.lean_mapping.production_kanban
Production Kanban
mxgraph.lean_mapping.withdrawal_kanban
Withdrawal Kanban
mxgraph.lean_mapping.signal_kanban
Signal Kanban
mxgraph.lean_mapping.truck_shipment
Truck Shipment
mxgraph.lean_mapping.operator
Operator
mxgraph.lean_mapping.inventory_box
Inventory
mxgraph.lean_mapping.kaizen_lightening_burst
Kaizen Burst
mxgraph.lean_mapping.mrp_erp
MRP / ERP System
mxgraph.lean_mapping.warehouse
Warehouse
mxgraph.lean_mapping.push_arrow
Push Arrow
mxgraph.lean_mapping.timeline2
Timeline
图标含义
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
时间线

Connection Types

连接类型

SyntaxMeaningUse Case
A --> B
Solid arrowSequence flow (task→task)
A ..> B
Dashed arrowMessage flow (cross-pool) / async trigger
A --> B : "label"
Labeled solidConditional flow (gateway branch)
A ..> B : "label"
Labeled dashedNamed message / signal
语法含义适用场景
A --> B
实线箭头序列流(任务→任务)
A ..> B
虚线箭头消息流(跨池)/异步触发
A --> B : "label"
带标签实线条件流(网关分支)
A ..> B : "label"
带标签虚线命名消息/信号

Quick Example

快速示例

plantuml
@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
plantuml
@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

Diagram Types

图表类型

TypePurposeKey StencilsExample
Order ProcessingE-commerce / fulfillment
mxgraph.bpmn.event.*
,
mxgraph.bpmn.gateway2.*
order-processing.md
Approval WorkflowMulti-level approval
mxgraph.bpmn.event.*
,
mxgraph.bpmn.gateway2.*
approval-workflow.md
EIP MessagingMessage routing & transformation
mxgraph.eip.*
eip-messaging.md
ETL PipelineData extraction & loading
mxgraph.bpmn.event.*
,
mxgraph.eip.*
etl-pipeline.md
Value StreamLean manufacturing flow
mxgraph.lean_mapping.*
value-stream.md
Microservice OrchestrationService choreography
mxgraph.bpmn.event.*
,
mxgraph.eip.*
microservice-orchestration.md
Event-Driven ArchitecturePub/Sub event flows
mxgraph.bpmn.event.*
,
mxgraph.eip.*
event-driven.md
Customer ServiceSupport ticket lifecycle
mxgraph.bpmn.event.*
,
mxgraph.bpmn.gateway2.*
customer-service.md
类型用途核心模板示例
订单处理电商/履约流程
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