Skip to content

Commit bf8c0d3

Browse files
Copilothotlong
andcommitted
Update enterprise-patterns docs to use new protocol terminology
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8aa25ea commit bf8c0d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/docs/concepts/enterprise-patterns.cn.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (order.status === 'draft' && user.role === 'manager') {
2525
```
2626

2727
### ObjectStack 模式
28-
我们将生命周期定义为 ObjectOS 协议中的**有限状态机(FSM)**。这使业务流程具有确定性和可视化。
28+
我们将生命周期定义为自动化协议(工作流)中的**有限状态机(FSM)**。这使业务流程具有确定性和可视化。
2929

3030
```yaml
3131
# workflows/purchase_order.yaml
@@ -55,7 +55,7 @@ ERP 系统通常需要"主-明细"数学。*示例:订单的总额是其行项
5555
在每个报表中手动编写 SQL `SUM()` 查询,或使用难以调试的数据库触发器。
5656

5757
### ObjectStack 模式
58-
我们在对象协议中定义**汇总字段**。ObjectQL 编译器处理底层复杂性(通过实时 `JOIN` 或后台聚合)。
58+
我们在数据协议(对象 schema)中定义**汇总字段**。数据层编译器处理底层复杂性(通过实时 `JOIN` 或后台聚合)。
5959

6060
```yaml
6161
# objects/order.yml
@@ -82,7 +82,7 @@ fields:
8282
reference_to: ['lead', 'contact', 'account', 'opportunity']
8383
```
8484

85-
这指示 ObjectQL 编译器生成必要的多态键(例如,`related_to_id` 和 `related_to_type` 列)。
85+
这指示数据层编译器生成必要的多态键(例如,`related_to_id` 和 `related_to_type` 列)。
8686

8787
## 总结
8888

content/docs/concepts/enterprise-patterns.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (order.status === 'draft' && user.role === 'manager') {
2525
```
2626

2727
### The ObjectStack Pattern
28-
We define the lifecycle as a **Finite State Machine (FSM)** in the ObjectOS Protocol. This makes the business process deterministic and visualizeable.
28+
We define the lifecycle as a **Finite State Machine (FSM)** in the Automation Protocol (Workflow). This makes the business process deterministic and visualizeable.
2929

3030
```yaml
3131
# workflows/purchase_order.yaml
@@ -55,7 +55,7 @@ ERP systems often require "Master-Detail" math. *Example: An Order's Total is th
5555
Writing SQL `SUM()` queries manually in every report, or using Database Triggers that are hard to debug.
5656

5757
### The ObjectStack Pattern
58-
We define **Summary Fields** in the Object Protocol. The ObjectQL Compiler handles the underlying complexity (either by real-time `JOIN` or background aggregation).
58+
We define **Summary Fields** in the Data Protocol (Object schema). The Data Layer compiler handles the underlying complexity (either by real-time `JOIN` or background aggregation).
5959

6060
```yaml
6161
# objects/order.yml
@@ -82,7 +82,7 @@ fields:
8282
reference_to: ['lead', 'contact', 'account', 'opportunity']
8383
```
8484

85-
This instructs the ObjectQL compiler to generate the necessary polymorphic keys (e.g., `related_to_id` and `related_to_type` columns).
85+
This instructs the Data Layer compiler to generate the necessary polymorphic keys (e.g., `related_to_id` and `related_to_type` columns).
8686

8787
## Summary
8888

0 commit comments

Comments
 (0)