Loading...
Loading...
Compare original and translation side by side
| Element | Symbol | Description |
|---|---|---|
| Process | Circle or rounded rectangle | Transforms input data into output data |
| Data Store | Open-ended rectangle (parallel lines) | Repository where data is held for later use |
| External Entity | Rectangle (square) | Source or sink of data outside the system boundary |
| Data Flow | Arrow with label | Movement of data between elements |
| 元素 | 符号 | 描述 |
|---|---|---|
| 流程 | 圆形或圆角矩形 | 将输入数据转换为输出数据 |
| 数据存储 | 开口矩形(平行线) | 用于存储数据供后续使用的仓库 |
| 外部实体 | 矩形(正方形) | 系统边界外的数据来源或接收方 |
| 数据流 | 带标签的箭头 | 元素之间的数据移动路径 |
┌─────────────────────────────────────────────────────────┐
│ Context Diagram (Level -1) │
│ │
│ ┌──────────┐ order ┌──────────┐ receipt │
│ │ Customer │────────────►│ Order │──────────► │
│ │ (External)│◄────────────│ System │ ┌──────────┐ │
│ └──────────┘ confirmation│ (Process) │──►│ Warehouse│ │
│ └──────────┘ │ (External)│ │
│ └──────────┘ │
│ Shows: entire system as ONE process │
└─────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────┐
│ Level 0 Diagram │
│ │
│ ┌──────────┐ order ┌─────────┐ valid ┌────────┐ │
│ │ Customer │────────►│ 1.0 │ order │ 2.0 │ │
│ │ │ │ Validate │────────►│ Process │ │
│ └──────────┘ │ Order │ │ Payment │ │
│ └─────────┘ └───┬────┘ │
│ │ │ │
│ error│ payment │
│ ▼ info │ │
│ ┌─────────┐ ▼ │
│ │ D1: │ ┌────────┐ │
│ │ Error │ │ 3.0 │ │
│ │ Log │ │ Fulfill │ │
│ └─────────┘ │ Order │ │
│ └───┬────┘ │
│ Shows: major processes within the system │ │
│ shipment │
│ info │ │
│ ▼ │
│ ┌──────────┐ │
│ │ Warehouse│ │
│ └──────────┘ │
└─────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────┐
│ Level 1+ Diagrams │
│ │
│ Explodes a single Level 0 process into sub-processes. │
│ E.g., "1.0 Validate Order" becomes: │
│ │
│ ┌─────────┐ order ┌─────────┐ checked ┌─────────┐ │
│ │ 1.1 │───────►│ 1.2 │────────►│ 1.3 │ │
│ │ Check │ │ Verify │ │ Confirm │ │
│ │ Syntax │ │ Stock │ │ Price │ │
│ └─────────┘ └────┬────┘ └─────────┘ │
│ │ │
│ ┌────▼────┐ │
│ │ D2: │ │
│ │ Inventory│ │
│ │ DB │ │
│ └─────────┘ │
└─────────────────────────────────────────────────────────┘┌─────────────────────────────────────────────────────────┐
│ 上下文图(Level -1) │
│ │
│ ┌──────────┐ order ┌──────────┐ receipt │
│ │ Customer │────────────►│ Order │──────────► │
│ │ (External)│◄────────────│ System │ ┌──────────┐ │
│ └──────────┘ confirmation│ (Process) │──►│ Warehouse│ │
│ └──────────┘ │ (External)│ │
│ └──────────┘ │
│ 展示:将整个系统视为单一流程 │
└─────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────┐
│ Level 0 Diagram │
│ │
│ ┌──────────┐ order ┌─────────┐ valid ┌────────┐ │
│ │ Customer │────────►│ 1.0 │ order │ 2.0 │ │
│ │ │ │ Validate │────────►│ Process │ │
│ └──────────┘ │ Order │ │ Payment │ │
│ └─────────┘ └───┬────┘ │
│ │ │ │
│ error│ payment │
│ ▼ info │ │
│ ┌─────────┐ ▼ │
│ │ D1: │ ┌────────┐ │
│ │ Error │ │ 3.0 │ │
│ │ Log │ │ Fulfill │ │
│ └─────────┘ │ Order │ │
│ └───┬────┘ │
│ 展示:系统内的主要流程 │ │
│ shipment │
│ info │ │
│ ▼ │
│ ┌──────────┐ │
│ │ Warehouse│ │
│ └──────────┘ │
└─────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────┐
│ Level 1+ Diagrams │
│ │
│ 将单个Level 0流程展开为子流程。 │
│ 例如,“1.0 Validate Order”展开为: │
│ │
│ ┌─────────┐ order ┌─────────┐ checked ┌─────────┐ │
│ │ 1.1 │───────►│ 1.2 │────────►│ 1.3 │ │
│ │ Check │ │ Verify │ │ Confirm │ │
│ │ Syntax │ │ Stock │ │ Price │ │
│ └─────────┘ └────┬────┘ └─────────┘ │
│ │ │
│ ┌────▼────┐ │
│ │ D2: │ │
│ │ Inventory│ │
│ │ DB │ │
│ └─────────┘ │
└─────────────────────────────────────────────────────────┘flowchart LR
%% External Entities (rectangles)
Customer[Customer]
Warehouse[Warehouse]
%% Processes (rounded)
P1([1.0 Validate Order])
P2([2.0 Process Payment])
P3([3.0 Fulfill Order])
%% Data Stores (cylinder shape for databases)
D1[(D1: Orders DB)]
D2[(D2: Inventory DB)]
%% Data Flows
Customer -->|order| P1
P1 -->|valid order| P2
P1 -->|order record| D1
P2 -->|payment confirmation| P3
P3 -->|stock query| D2
D2 -->|availability| P3
P3 -->|shipment request| Warehouse
P1 -->|confirmation| Customerflowchart LR
%% External Entities (rectangles)
Customer[Customer]
Warehouse[Warehouse]
%% Processes (rounded)
P1([1.0 Validate Order])
P2([2.0 Process Payment])
P3([3.0 Fulfill Order])
%% Data Stores (cylinder shape for databases)
D1[(D1: Orders DB)]
D2[(D2: Inventory DB)]
%% Data Flows
Customer -->|order| P1
P1 -->|valid order| P2
P1 -->|order record| D1
P2 -->|payment confirmation| P3
P3 -->|stock query| D2
D2 -->|availability| P3
P3 -->|shipment request| Warehouse
P1 -->|confirmation| Customer┌──────────────────────────────────────────┐
│ Order Management System │
│ (Level 0) │
└──────────────┬───────────────────────────┘
│
┌──────────┼──────────────┬─────────────────┐
│ │ │ │
▼ ▼ ▼ ▼
┌────────┐ ┌────────┐ ┌──────────┐ ┌──────────┐
│ Receive│ │ Process│ │ Fulfill │ │ Manage │
│ Order │ │ Payment│ │ Order │ │ Returns │
│ (1.0) │ │ (2.0) │ │ (3.0) │ │ (4.0) │
└───┬────┘ └───┬────┘ └────┬─────┘ └────┬─────┘
│ │ │ │
┌─┼─┐ ┌─┼─┐ ┌──┼──┐ ┌──┼──┐
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
1.1 1.2 2.1 2.2 3.1 3.2 3.3 4.1 4.2 4.3
Val Cap Auth Rec Pick Pack Ship Auth Proc Ref┌──────────────────────────────────────────┐
│ 订单管理系统 │
│ (Level 0) │
└──────────────┬───────────────────────────┘
│
┌──────────┼──────────────┬─────────────────┐
│ │ │ │
▼ ▼ ▼ ▼
┌────────┐ ┌────────┐ ┌──────────┐ ┌──────────┐
│ 接收订单│ │ 处理支付│ │ 履行订单 │ │ 管理退货 │
│ (1.0) │ │ (2.0) │ │ (3.0) │ │ (4.0) │
└───┬────┘ └───┬────┘ └────┬─────┘ └────┬─────┘
│ │ │ │
┌─┼─┐ ┌─┼─┐ ┌──┼──┐ ┌──┼──┐
▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼
1.1 1.2 2.1 2.2 3.1 3.2 3.3 4.1 4.2 4.3
验证 捕获 授权 记录 拣货 打包 发货 授权 处理 退款flowchart TD
A[Order Management System]
A --> B[1.0 Receive Order]
A --> C[2.0 Process Payment]
A --> D[3.0 Fulfill Order]
A --> E[4.0 Manage Returns]
B --> B1[1.1 Validate Order]
B --> B2[1.2 Capture Order Details]
B --> B3[1.3 Confirm Order]
D --> D1[3.1 Pick Items]
D --> D2[3.2 Pack Order]
D --> D3[3.3 Ship Package]flowchart TD
A[订单管理系统]
A --> B[1.0 接收订单]
A --> C[2.0 处理支付]
A --> D[3.0 履行订单]
A --> E[4.0 管理退货]
B --> B1[1.1 验证订单]
B --> B2[1.2 捕获订单详情]
B --> B3[1.3 确认订单]
D --> D1[3.1 拣货]
D --> D2[3.2 打包订单]
D --> D3[3.3 发货] Controls (top)
│
▼
┌───────────────┐
│ │
Inputs ──►│ Function │──► Outputs
(left) │ │ (right)
└───────┬───────┘
│
▲
Mechanisms (bottom)| Arrow Position | Name | Description | Example |
|---|---|---|---|
| Left (entering) | Inputs | Data or objects transformed by the function | Raw order data |
| Top (entering) | Controls | Conditions, rules, or constraints that govern the function | Business rules, regulations |
| Right (exiting) | Outputs | Data or objects produced by the function | Validated order |
| Bottom (entering) | Mechanisms | Resources that perform the function | Staff, software, equipment |
控制项(顶部)
│
▼
┌───────────────┐
│ │
输入项 ──►│ 功能 │──► 输出项
(左侧) │ │ (右侧)
└───────┬───────┘
│
▲
机制项(底部)| 箭头位置 | 名称 | 描述 | 示例 |
|---|---|---|---|
| 左侧(进入) | 输入项 | 被功能转换的数据或对象 | 原始订单数据 |
| 顶部(进入) | 控制项 | 约束功能的条件、规则或限制 | 业务规则、法规 |
| 右侧(离开) | 输出项 | 功能产生的数据或对象 | 已验证订单 |
| 底部(进入) | 机制项 | 执行功能的资源 | 员工、软件、设备 |
Business Rules Pricing Policy
│ │
▼ ▼
┌──────────────────────────────┐
│ │
Customer ──►│ Process Customer Order │──► Confirmed Order
Order │ (A0) │──► Invoice
│ │──► Shipment Request
└──────────────┬───────────────┘
│
┌──────────┼──────────┐
▲ ▲ ▲
Order Mgmt ERP Warehouse
Team System Staff 业务规则 定价策略
│ │
▼ ▼
┌──────────────────────────────┐
│ │
客户 ──►│ 处理客户订单 │──► 已确认订单
订单 │ (A0) │──► 发票
│ │──► 发货请求
└──────────────┬───────────────┘
│
┌──────────┼──────────┐
▲ ▲ ▲
订单管理团队 ERP系统 仓库员工A-0: Process Customer Order
└── A0 Decomposition:
├── A1: Validate Order
├── A2: Check Inventory
├── A3: Calculate Pricing
├── A4: Process Payment
└── A5: Initiate FulfillmentA-0: 处理客户订单
└── A0分解:
├── A1: 验证订单
├── A2: 检查库存
├── A3: 计算定价
├── A4: 处理支付
└── A5: 启动履行流程flowchart LR
subgraph Controls
BR[Business Rules]
PP[Pricing Policy]
end
subgraph Inputs
CO[Customer Order]
end
subgraph "A0: Process Customer Order"
A1([A1: Validate Order])
A2([A2: Check Inventory])
A3([A3: Calculate Pricing])
A4([A4: Process Payment])
A5([A5: Initiate Fulfillment])
end
subgraph Outputs
CF[Confirmed Order]
INV[Invoice]
SR[Shipment Request]
end
subgraph Mechanisms
OT[Order Mgmt Team]
ERP[ERP System]
WS[Warehouse Staff]
end
CO --> A1
BR --> A1
BR --> A3
PP --> A3
A1 -->|valid order| A2
A2 -->|stock confirmed| A3
A3 -->|priced order| A4
A4 -->|paid order| A5
A5 --> CF
A4 --> INV
A5 --> SR
OT -.-> A1
ERP -.-> A2
ERP -.-> A3
ERP -.-> A4
WS -.-> A5flowchart LR
subgraph Controls
BR[Business Rules]
PP[Pricing Policy]
end
subgraph Inputs
CO[Customer Order]
end
subgraph "A0: Process Customer Order"
A1([A1: Validate Order])
A2([A2: Check Inventory])
A3([A3: Calculate Pricing])
A4([A4: Process Payment])
A5([A5: Initiate Fulfillment])
end
subgraph Outputs
CF[Confirmed Order]
INV[Invoice]
SR[Shipment Request]
end
subgraph Mechanisms
OT[Order Mgmt Team]
ERP[ERP System]
WS[Warehouse Staff]
end
CO --> A1
BR --> A1
BR --> A3
PP --> A3
A1 -->|valid order| A2
A2 -->|stock confirmed| A3
A3 -->|priced order| A4
A4 -->|paid order| A5
A5 --> CF
A4 --> INV
A5 --> SR
OT -.-> A1
ERP -.-> A2
ERP -.-> A3
ERP -.-> A4
WS -.-> A5| Element | Symbol | Description |
|---|---|---|
| Task | Rounded rectangle | An atomic activity within a process |
| Sub-Process | Rounded rectangle with + | A compound activity containing a nested process |
| Event (Start) | Thin circle | Indicates where a process begins |
| Event (Intermediate) | Double circle | Occurs between start and end |
| Event (End) | Thick circle | Indicates where a process ends |
| Exclusive Gateway (XOR) | Diamond with X | Decision point, only one path taken |
| Parallel Gateway (AND) | Diamond with + | All paths are taken simultaneously |
| Inclusive Gateway (OR) | Diamond with O | One or more paths taken |
| Event-Based Gateway | Diamond with pentagon | Path determined by event occurrence |
| 元素 | 符号 | 描述 |
|---|---|---|
| 任务 | 圆角矩形 | 流程中的原子活动 |
| 子流程 | 带+号的圆角矩形 | 包含嵌套流程的复合活动 |
| 事件(开始) | 细圆圈 | 表示流程的起点 |
| 事件(中间) | 双圆圈 | 发生在开始和结束事件之间 |
| 事件(结束) | 粗圆圈 | 表示流程的终点 |
| 排他网关(XOR) | 带X的菱形 | 决策点,仅选择一条路径 |
| 并行网关(AND) | 带+的菱形 | 同时选择所有路径 |
| 包容网关(OR) | 带O的菱形 | 选择一条或多条路径 |
| 事件网关 | 带五边形的菱形 | 根据事件发生情况选择路径 |
| Element | Description |
|---|---|
| Pool | A container representing a participant (organization, system, role) |
| Lane | A sub-partition within a pool, typically representing a specific role or department |
| 元素 | 描述 |
|---|---|
| 池 | 代表参与者(组织、系统、角色)的容器 |
| 道 | 池内的子分区,通常代表特定角色或部门 |
| Element | Description |
|---|---|
| Sequence Flow | Solid arrow showing order of activities within a pool |
| Message Flow | Dashed arrow showing communication between pools |
| Association | Dotted line connecting data objects or annotations to flow objects |
| 元素 | 描述 |
|---|---|
| 序列流 | 实心箭头,展示池内活动的执行顺序 |
| 消息流 | 虚线箭头,展示池之间的通信 |
| 关联 | 虚线,将数据对象或注释与流对象连接 |
| Element | Description |
|---|---|
| Data Object | Information required or produced by a task |
| Data Store | A persistent repository |
| 元素 | 描述 |
|---|---|
| 数据对象 | 任务所需或产生的信息 |
| 数据存储 | 持久化存储库 |
┌──────────────────────────────────────────────────────────────────────┐
│ Pool: Order Fulfillment │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Lane: Sales │ │
│ │ │ │
│ │ (○)──►[Receive Order]──►<X>──►[Send Confirmation]──► │ │
│ │ Start │ │ │
│ │ invalid │ │
│ │ │ │ │
│ │ ▼ │ │
│ │ [Reject Order]──►(●) │ │
│ │ End │ │
│ └──────────────────────────────────┼──────────────────────────────┘ │
│ │ valid │
│ ┌──────────────────────────────────▼──────────────────────────────┐ │
│ │ Lane: Warehouse │ │
│ │ │ │
│ │ [Pick Items]──►[Pack Order]──►[Ship Order]──►(●) │ │
│ │ End │ │
│ └──────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────────────┐ │
│ │ Lane: Finance │ │
│ │ │ │
│ │ [Process Payment]──►<X>──►[Issue Invoice]──►(●) │ │
│ │ │ End │ │
│ │ failed│ │ │
│ │ ▼ │ │
│ │ [Escalate to Manager]──►(●) │ │
│ │ End │ │
│ └──────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────┘
Legend: (○) = Start Event, (●) = End Event, <X> = Exclusive Gateway
[Task] = Task/Activity┌──────────────────────────────────────────────────────────────────────┐
│ 池:订单履行 │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ 道:销售部 │ │
│ │ │ │
│ │ (○)──►[接收订单]──►<X>──►[发送确认]──► │ │
│ │ 开始 │ │ │
│ │ 无效 │ │
│ │ │ │ │
│ │ ▼ │ │
│ │ [拒绝订单]──►(●) │ │
│ │ 结束 │ │
│ └──────────────────────────────────┼──────────────────────────────┘ │
│ │ 有效 │
│ ┌──────────────────────────────────▼──────────────────────────────┐ │
│ │ 道:仓库部 │ │
│ │ │ │
│ │ [拣货]──►[打包订单]──►[发货]──►(●) │ │
│ │ 结束 │ │
│ └──────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────────────┐ │
│ │ 道:财务部 │ │
│ │ │ │
│ │ [处理支付]──►<X>──►[开具发票]──►(●) │ │
│ │ │ 结束 │ │
│ │ 失败│ │ │
│ │ ▼ │ │
│ │ [上报经理]──►(●) │ │
│ │ 结束 │ │
│ └──────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────┘
图例:(○) = 开始事件, (●) = 结束事件, <X> = 排他网关
[Task] = 任务/活动flowchart TD
Start((Start)) --> ReceiveOrder[Receive Order]
ReceiveOrder --> ValidCheck{Valid?}
ValidCheck -->|Yes| SendConfirmation[Send Confirmation]
ValidCheck -->|No| RejectOrder[Reject Order]
RejectOrder --> EndReject((End))
SendConfirmation --> Fork{Parallel}
Fork --> PickItems[Pick Items]
Fork --> ProcessPayment[Process Payment]
PickItems --> PackOrder[Pack Order]
PackOrder --> ShipOrder[Ship Order]
ShipOrder --> Join{Join}
ProcessPayment --> PayCheck{Payment OK?}
PayCheck -->|Yes| IssueInvoice[Issue Invoice]
PayCheck -->|No| Escalate[Escalate to Manager]
Escalate --> EndEsc((End))
IssueInvoice --> Join
Join --> EndSuccess((End))flowchart TD
Start((Start)) --> ReceiveOrder[Receive Order]
ReceiveOrder --> ValidCheck{Valid?}
ValidCheck -->|Yes| SendConfirmation[Send Confirmation]
ValidCheck -->|No| RejectOrder[Reject Order]
RejectOrder --> EndReject((End))
SendConfirmation --> Fork{Parallel}
Fork --> PickItems[Pick Items]
Fork --> ProcessPayment[Process Payment]
PickItems --> PackOrder[Pack Order]
PackOrder --> ShipOrder[Ship Order]
ShipOrder --> Join{Join}
ProcessPayment --> PayCheck{Payment OK?}
PayCheck -->|Yes| IssueInvoice[Issue Invoice]
PayCheck -->|No| Escalate[Escalate to Manager]
Escalate --> EndEsc((End))
IssueInvoice --> Join
Join --> EndSuccess((End))| Diagram Type | Best For | Not Suitable For |
|---|---|---|
| DFD | Data transformation analysis, system boundaries, data store identification | Process timing, organizational roles |
| Functional Decomposition | Breaking complex systems into manageable pieces, scope definition | Data flow, process sequencing |
| IDEF0 | Understanding function constraints and resources, manufacturing and engineering processes | Simple workflows, quick communication |
| BPMN | Business process documentation, workflow automation, cross-department handoffs | Data modeling, system architecture |
| 图表类型 | 最佳适用场景 | 不适用场景 |
|---|---|---|
| DFD | 数据转换分析、系统边界定义、数据存储识别 | 流程时序、组织角色 |
| 功能分解 | 将复杂系统拆分为可管理的模块、范围定义 | 数据流、流程排序 |
| IDEF0 | 理解功能约束和资源、制造与工程流程 | 简单工作流、快速沟通 |
| BPMN | 业务流程文档编制、工作流自动化、跨部门交接 | 数据建模、系统架构 |
Functional Decomposition Tree
│
│ identifies functions to model
▼
IDEF0 Diagrams
│
│ identifies data transformations
▼
Data Flow Diagrams
│
│ identifies processes to orchestrate
▼
BPMN Process Models功能分解树
│
│ 识别需要建模的功能
▼
IDEF0图
│
│ 识别数据转换
▼
数据流图
│
│ 识别需要编排的流程
▼
BPMN流程模型