bpmn
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBusiness 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 fence.
```plantuml⚠️ IMPORTANT: Always useor```plantumlcode fence. NEVER use```puml— it will NOT render as a diagram.```text
快速开始: 选择图表类型 → 声明事件/网关/任务对应的模板图标 → 分组到池/泳道中 → 使用箭头语法连接元素 → 包裹在 代码块内。
```plantuml⚠️ 重要提示: 请始终使用或```plantuml代码块,切勿使用```puml—— 后者无法渲染为图表。```text
Critical Rules
核心规则
- Every diagram starts with and ends with
@startuml@enduml - Use for process flows (start→end reads left-to-right)
left to right direction - Use for BPMN events, gateways, and task markers
mxgraph.bpmn.* - Use for Enterprise Integration Pattern icons
mxgraph.eip.* - Use for Value Stream Mapping symbols
mxgraph.lean_mapping.* - Default colors are applied automatically — you do NOT need to specify or
fillColorstrokeColor - Use for BPMN pools and lanes
rectangle "Pool" { ... } - 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.* - 默认颜色会自动应用,无需手动指定 或
fillColorstrokeColor - 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.*
)
mxgraph.bpmn.*BPMN模板族 (mxgraph.bpmn.*
)
mxgraph.bpmn.*Events — Circle shapes for process triggers and outcomes:
| Icon | Meaning |
|---|---|
| Start Event |
| End Event |
| Terminate End |
| Timer Start |
| Timer Intermediate |
| Message Start |
| Message Catching |
| Message End |
| Error End |
| Error Boundary |
| Signal Start |
| Signal End |
Gateways — Diamond shapes for branching/merging:
| Icon | Meaning |
|---|---|
| Exclusive Gateway (XOR) |
| Parallel Gateway (AND) |
| Inclusive Gateway (OR) |
| Complex Gateway |
Tasks — Use for tasks, stencil markers for typed tasks:
rectangle| Icon | Meaning |
|---|---|
| User Task |
| Service Task |
| Script Task |
| Manual Task |
| Business Rule Task |
Data — Document-like shapes:
| Icon | Meaning |
|---|---|
| Data Object |
| Data Input |
| Data Output |
事件 — 表示流程触发和结果的圆形元素:
| 图标 | 含义 |
|---|---|
| 开始事件 |
| 结束事件 |
| 终止结束事件 |
| 定时器启动事件 |
| 中间定时器捕获事件 |
| 消息启动事件 |
| 消息捕获事件 |
| 消息结束事件 |
| 错误结束事件 |
| 错误边界事件 |
| 信号启动事件 |
| 信号结束事件 |
网关 — 表示分支/合并的菱形元素:
| 图标 | 含义 |
|---|---|
| 排他网关(XOR) |
| 并行网关(AND) |
| 相容网关(OR) |
| 复杂网关 |
任务 — 任务使用 声明,类型标记使用对应模板:
rectangle| 图标 | 含义 |
|---|---|
| 用户任务 |
| 服务任务 |
| 脚本任务 |
| 手动任务 |
| 业务规则任务 |
数据 — 类文档形状的元素:
| 图标 | 含义 |
|---|---|
| 数据对象 |
| 数据输入 |
| 数据输出 |
EIP Stencil Family (mxgraph.eip.*
)
mxgraph.eip.*EIP模板族 (mxgraph.eip.*
)
mxgraph.eip.*| Icon | Meaning |
|---|---|
| Message Channel |
| Dead Letter Channel |
| Content-Based Router |
| Message Filter |
| Splitter |
| Aggregator |
| Message Translator |
| Content Enricher |
| Messaging Gateway |
| Channel Adapter |
| Messaging Bridge |
| Recipient List |
| Wire Tap |
| Event-Driven Consumer |
| Competing Consumers |
| Process Manager |
| 图标 | 含义 |
|---|---|
| 消息通道 |
| 死信通道 |
| 基于内容的路由器 |
| 消息过滤器 |
| 拆分器 |
| 聚合器 |
| 消息转换器 |
| 内容增强器 |
| 消息网关 |
| 通道适配器 |
| 消息桥接 |
| 接收者列表 |
| 监听通道 |
| 事件驱动消费者 |
| 竞争消费者 |
| 流程管理器 |
Lean Mapping Stencil Family (mxgraph.lean_mapping.*
)
mxgraph.lean_mapping.*精益映射模板族 (mxgraph.lean_mapping.*
)
mxgraph.lean_mapping.*| Icon | Meaning |
|---|---|
| Supplier / Customer |
| Process Step |
| Supermarket (Inventory Buffer) |
| FIFO Lane |
| Production Kanban |
| Withdrawal Kanban |
| Signal Kanban |
| Truck Shipment |
| Operator |
| Inventory |
| Kaizen Burst |
| MRP / ERP System |
| Warehouse |
| Push Arrow |
| Timeline |
| 图标 | 含义 |
|---|---|
| 供应商/客户 |
| 流程步骤 |
| 超市(库存缓冲区) |
| FIFO泳道 |
| 生产看板 |
| 领取看板 |
| 信号看板 |
| 货车运输 |
| 操作员 |
| 库存 |
| 改善点 |
| MRP/ERP系统 |
| 仓库 |
| 推动箭头 |
| 时间线 |
Connection Types
连接类型
| Syntax | Meaning | Use Case |
|---|---|---|
| Solid arrow | Sequence flow (task→task) |
| Dashed arrow | Message flow (cross-pool) / async trigger |
| Labeled solid | Conditional flow (gateway branch) |
| Labeled dashed | Named message / signal |
| 语法 | 含义 | 适用场景 |
|---|---|---|
| 实线箭头 | 序列流(任务→任务) |
| 虚线箭头 | 消息流(跨池)/异步触发 |
| 带标签实线 | 条件流(网关分支) |
| 带标签虚线 | 命名消息/信号 |
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
@endumlplantuml
@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
@endumlDiagram Types
图表类型
| Type | Purpose | Key Stencils | Example |
|---|---|---|---|
| Order Processing | E-commerce / fulfillment | | order-processing.md |
| Approval Workflow | Multi-level approval | | approval-workflow.md |
| EIP Messaging | Message routing & transformation | | eip-messaging.md |
| ETL Pipeline | Data extraction & loading | | etl-pipeline.md |
| Value Stream | Lean manufacturing flow | | value-stream.md |
| Microservice Orchestration | Service choreography | | microservice-orchestration.md |
| Event-Driven Architecture | Pub/Sub event flows | | event-driven.md |
| Customer Service | Support ticket lifecycle | | customer-service.md |
| 类型 | 用途 | 核心模板 | 示例 |
|---|---|---|---|
| 订单处理 | 电商/履约流程 | | order-processing.md |
| 审批工作流 | 多级审批 | | approval-workflow.md |
| EIP消息流 | 消息路由与转换 | | eip-messaging.md |
| ETL管道 | 数据抽取与加载 | | etl-pipeline.md |
| 价值流 | 精益生产流程 | | value-stream.md |
| 微服务编排 | 服务协同 | | microservice-orchestration.md |
| 事件驱动架构 | 发布/订阅事件流 | | event-driven.md |
| 客户服务 | 支持工单生命周期 | | customer-service.md |