specdojo 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +2 -2
- package/dist/commands/agent.js +33 -0
- package/dist/commands/init.js +1 -0
- package/dist/commands/orchestrator.js +10 -1
- package/dist/devcontainer/command.js +18 -0
- package/dist/devcontainer/host-script.js +21 -0
- package/dist/devcontainer/scaffold.js +4 -3
- package/dist/exec/antigravity-session.js +154 -0
- package/dist/exec/parent-validation.js +7 -0
- package/dist/exec/plan-markdownlint.js +89 -0
- package/dist/exec/plans-generation.js +6 -2
- package/dist/exec/register-resume.js +28 -0
- package/dist/exec/run/lifecycle-commands.js +85 -16
- package/dist/exec/run/register-command.js +6 -0
- package/dist/exec/run/schedule-mode.js +22 -2
- package/dist/exec/run/schedule-prepare.js +42 -1
- package/dist/exec/run/schedule-task.js +3 -0
- package/dist/exec/worktree-ops-commit.js +1 -13
- package/dist/exec/worktree-ops-lifecycle.js +40 -36
- package/dist/register/register.js +31 -23
- package/dist/shared/git.js +7 -0
- package/dist/shared/provider-scaffold.js +2 -0
- package/dist/shared/specdojo-gitignore.js +1 -0
- package/docs/ja/specdojo/defaults/pm-review-viewpoints.yaml +2 -0
- package/docs/ja/specdojo/guides/docs-editing-guide.md +36 -0
- package/docs/ja/specdojo/guides/exec-config-guide.md +14 -12
- package/docs/ja/specdojo/guides/exec-operation-guide.md +20 -8
- package/docs/ja/specdojo/guides/orchestrator-operation-guide.md +4 -2
- package/docs/ja/specdojo/guides/quick-start-guide.md +597 -871
- package/docs/ja/specdojo/guides/register-operation-guide.md +2 -0
- package/docs/ja/specdojo/guides/remote-host-development-guide.md +31 -4
- package/docs/ja/specdojo/guides/schedule-operation-guide.md +14 -0
- package/docs/ja/specdojo/guides/use-case-guide.md +537 -77
- package/docs/ja/specdojo/recipes/cdfd-overview-recipe.md +88 -86
- package/docs/ja/specdojo/recipes/cdfd-uc-recipe.md +96 -122
- package/docs/ja/specdojo/references/command-reference.md +69 -37
- package/docs/ja/specdojo/rulebooks/cdfd-d2-rulebook.md +367 -0
- package/docs/ja/specdojo/rulebooks/cdfd-mermaid-rulebook.md +6 -5
- package/docs/ja/specdojo/rulebooks/cdfd-overview-rulebook.md +96 -100
- package/docs/ja/specdojo/rulebooks/cdfd-rulebook.md +38 -47
- package/docs/ja/specdojo/rulebooks/cdfd-uc-rulebook.md +108 -103
- package/docs/ja/specdojo/samples/cdfd-overview-sample.md +248 -140
- package/docs/ja/specdojo/samples/cdfd-uc-sample.md +128 -97
- package/docs/ja/specdojo/templates/cdfd-overview-template.md +161 -83
- package/docs/ja/specdojo/templates/cdfd-uc-template.md +127 -90
- package/docs/specdojo/schemas/v1/exec-defaults.schema.yaml +1 -0
- package/docs/specdojo/schemas/v1/specdojo-config.schema.yaml +1 -0
- package/package.json +5 -2
- package/templates/antigravity/README.md +19 -46
- package/templates/antigravity/exec-defaults-snippet.yaml +5 -6
- package/templates/antigravity/settings.edit.json +73 -0
- package/templates/antigravity/settings.orchestrator.json +15 -0
- package/templates/antigravity/settings.report.json +7 -0
- package/templates/antigravity/settings.review.json +7 -0
- package/templates/devcontainer/remote-host/devcontainer-tmux.sh +217 -0
- package/templates/devcontainer/remote-host/specdojo-tmux.sh.sample +8 -96
- package/templates/devcontainer/remote-host/ssh-config.sample +3 -1
- package/templates/init-agent-members.yaml +1 -0
- package/templates/init-exec-defaults.yaml +1 -1
|
@@ -14,12 +14,7 @@ specdojo:
|
|
|
14
14
|
|
|
15
15
|
## 1. 目的
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- 店主代表は、対象範囲と領域分割を承認する。
|
|
20
|
-
- 開発担当は、各プロセスグループ別 CDFD の範囲と、ユースケース別 CDFD がどの領域を横断するかを本書で確認し、詳細化する。
|
|
21
|
-
- 技術メンターは、データストアと領域間の受け渡しを設計入力として使う。
|
|
22
|
-
- 同行レビュー担当は、領域とプロセスグループ別 CDFD の対応から重複・欠落を確認する。
|
|
17
|
+
駄菓子屋きぬやの販売管理業務の全体像として、仕入・販売・在庫・顧客・締めの五つのプロセスグループと、それらが読み書きするデータの関係を示す。
|
|
23
18
|
|
|
24
19
|
## 2. 適用範囲
|
|
25
20
|
|
|
@@ -30,16 +25,10 @@ specdojo:
|
|
|
30
25
|
|
|
31
26
|
## 3. プロセス領域
|
|
32
27
|
|
|
33
|
-
業務は 10
|
|
28
|
+
業務は 10 のプロセス領域を五つのプロセスグループにまとめる。領域の分割は本書の表、受け渡しは本書の図、領域内の詳細はプロセスグループ別 CDFD を正本とする。
|
|
34
29
|
|
|
35
30
|
### 3.1. 仕入(P-01〜P-02)
|
|
36
31
|
|
|
37
|
-
在庫の補充依頼と商品台帳の仕入先情報から発注を行い、入荷した商品を検品して売場へ出し、仕入記録と在庫記録を更新する。
|
|
38
|
-
|
|
39
|
-
- **主要入力**: 在庫からの補充依頼、商品台帳の仕入先・発注単位、仕入先からの納品
|
|
40
|
-
- **主要出力**: 仕入先への発注、売場棚へ出す商品、仕入記録、入荷数量
|
|
41
|
-
- **データストア**: 商品台帳、仕入記録、在庫記録、売場棚
|
|
42
|
-
|
|
43
32
|
<!-- prettier-ignore -->
|
|
44
33
|
| 領域 ID | プロセス領域 | 業務目的 | 主な担当 | 起点イベント |
|
|
45
34
|
| --- | --- | --- | --- | --- |
|
|
@@ -48,12 +37,6 @@ specdojo:
|
|
|
48
37
|
|
|
49
38
|
### 3.2. 販売(P-03〜P-04)
|
|
50
39
|
|
|
51
|
-
顧客の購入依頼に対して商品を渡し、現金またはつけで販売を記録する。つけ販売では顧客台帳のつけ上限とつけ台帳の残高を確認する。
|
|
52
|
-
|
|
53
|
-
- **主要入力**: 顧客からの購入依頼と支払、売場棚の商品、商品台帳の売価、顧客台帳のつけ上限、つけ台帳の残高
|
|
54
|
-
- **主要出力**: 顧客へ渡す商品、販売記録、つけ販売の記録
|
|
55
|
-
- **データストア**: 商品台帳、顧客台帳、販売記録、つけ台帳、売場棚
|
|
56
|
-
|
|
57
40
|
<!-- prettier-ignore -->
|
|
58
41
|
| 領域 ID | プロセス領域 | 業務目的 | 主な担当 | 起点イベント |
|
|
59
42
|
| --- | --- | --- | --- | --- |
|
|
@@ -62,12 +45,6 @@ specdojo:
|
|
|
62
45
|
|
|
63
46
|
### 3.3. 在庫(P-05〜P-06)
|
|
64
47
|
|
|
65
|
-
販売記録と入荷数量から在庫記録を更新し、商品台帳の補充基準を下回った商品について仕入へ補充を依頼する。
|
|
66
|
-
|
|
67
|
-
- **主要入力**: 販売記録の販売数量、仕入からの入荷数量、商品台帳の補充基準
|
|
68
|
-
- **主要出力**: 在庫記録、仕入への補充依頼
|
|
69
|
-
- **データストア**: 商品台帳、販売記録、在庫記録
|
|
70
|
-
|
|
71
48
|
<!-- prettier-ignore -->
|
|
72
49
|
| 領域 ID | プロセス領域 | 業務目的 | 主な担当 | 起点イベント |
|
|
73
50
|
| --- | --- | --- | --- | --- |
|
|
@@ -76,12 +53,6 @@ specdojo:
|
|
|
76
53
|
|
|
77
54
|
### 3.4. 顧客(P-07〜P-08)
|
|
78
55
|
|
|
79
|
-
常連客を顧客台帳へ登録してつけ上限を定め、つけ台帳の残高を精算する。
|
|
80
|
-
|
|
81
|
-
- **主要入力**: 顧客からの登録依頼とつけの支払、つけ台帳の残高
|
|
82
|
-
- **主要出力**: 顧客台帳の顧客情報とつけ上限、つけ台帳の精算記録
|
|
83
|
-
- **データストア**: 顧客台帳、つけ台帳
|
|
84
|
-
|
|
85
56
|
<!-- prettier-ignore -->
|
|
86
57
|
| 領域 ID | プロセス領域 | 業務目的 | 主な担当 | 起点イベント |
|
|
87
58
|
| --- | --- | --- | --- | --- |
|
|
@@ -90,12 +61,6 @@ specdojo:
|
|
|
90
61
|
|
|
91
62
|
### 3.5. 締め(P-09〜P-10)
|
|
92
63
|
|
|
93
|
-
日々の販売、仕入、在庫、つけを突き合わせて日次締めを確定し、月次で売価・補充基準・つけ上限を見直す。
|
|
94
|
-
|
|
95
|
-
- **主要入力**: 販売記録、仕入記録、在庫記録、つけ台帳
|
|
96
|
-
- **主要出力**: 日次締め記録、月次報告、商品台帳と顧客台帳の見直し
|
|
97
|
-
- **データストア**: 販売記録、仕入記録、在庫記録、つけ台帳、日次締め記録、月次報告、商品台帳、顧客台帳
|
|
98
|
-
|
|
99
64
|
<!-- prettier-ignore -->
|
|
100
65
|
| 領域 ID | プロセス領域 | 業務目的 | 主な担当 | 起点イベント |
|
|
101
66
|
| --- | --- | --- | --- | --- |
|
|
@@ -129,76 +94,156 @@ specdojo:
|
|
|
129
94
|
|
|
130
95
|
## 5. 概念データフロー(概要)
|
|
131
96
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
class
|
|
197
|
-
|
|
198
|
-
|
|
97
|
+
本書は、データストアの区分で図を分ける今の方式を採用する。代表ノード 5 とデータストア 9 の計 14 ノードのため、1 図で示す。
|
|
98
|
+
|
|
99
|
+
仕入から販売と締めまでのデータの関係
|
|
100
|
+
|
|
101
|
+
```d2
|
|
102
|
+
direction: down
|
|
103
|
+
|
|
104
|
+
classes: {
|
|
105
|
+
process: {
|
|
106
|
+
shape: rectangle
|
|
107
|
+
style: {
|
|
108
|
+
border-radius: 8
|
|
109
|
+
fill: "#e3f2fd"
|
|
110
|
+
stroke: "#1e88e5"
|
|
111
|
+
font-color: "#000000"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
store_master: {
|
|
115
|
+
shape: cylinder
|
|
116
|
+
style: {
|
|
117
|
+
fill: "#e8f5e9"
|
|
118
|
+
stroke: "#43a047"
|
|
119
|
+
font-color: "#000000"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
store_transaction: {
|
|
123
|
+
shape: cylinder
|
|
124
|
+
style: {
|
|
125
|
+
fill: "#c8e6c9"
|
|
126
|
+
stroke: "#2e7d32"
|
|
127
|
+
font-color: "#000000"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
physical_store: {
|
|
131
|
+
shape: rectangle
|
|
132
|
+
style: {
|
|
133
|
+
border-radius: 20
|
|
134
|
+
fill: "#c8e6c9"
|
|
135
|
+
stroke: "#2e7d32"
|
|
136
|
+
font-color: "#000000"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
actor: {
|
|
140
|
+
shape: rectangle
|
|
141
|
+
style: {
|
|
142
|
+
fill: "#f5f7fa"
|
|
143
|
+
stroke: "#607d8b"
|
|
144
|
+
font-color: "#000000"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
material_flow: {
|
|
148
|
+
style: {
|
|
149
|
+
stroke-width: 3
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
supplier: "🏭 仕入先" {
|
|
155
|
+
class: actor
|
|
156
|
+
}
|
|
157
|
+
customer: "🧑 顧客" {
|
|
158
|
+
class: actor
|
|
159
|
+
}
|
|
160
|
+
purchasing: "🚚 仕入\nP-01〜P-02" {
|
|
161
|
+
class: process
|
|
162
|
+
}
|
|
163
|
+
sales: "🛒 販売\nP-03〜P-04" {
|
|
164
|
+
class: process
|
|
165
|
+
}
|
|
166
|
+
inventory: "📦 在庫\nP-05〜P-06" {
|
|
167
|
+
class: process
|
|
168
|
+
}
|
|
169
|
+
customer_management: "👥 顧客\nP-07〜P-08" {
|
|
170
|
+
class: process
|
|
171
|
+
}
|
|
172
|
+
closing: "🧮 締め\nP-09〜P-10" {
|
|
173
|
+
class: process
|
|
174
|
+
}
|
|
175
|
+
product_master: "📐 商品台帳" {
|
|
176
|
+
class: store_master
|
|
177
|
+
}
|
|
178
|
+
customer_master: "📐 顧客台帳" {
|
|
179
|
+
class: store_master
|
|
180
|
+
}
|
|
181
|
+
sales_record: "📒 販売記録" {
|
|
182
|
+
class: store_transaction
|
|
183
|
+
}
|
|
184
|
+
purchase_record: "📒 仕入記録" {
|
|
185
|
+
class: store_transaction
|
|
186
|
+
}
|
|
187
|
+
inventory_record: "📒 在庫記録" {
|
|
188
|
+
class: store_transaction
|
|
189
|
+
}
|
|
190
|
+
credit_ledger: "📒 つけ台帳" {
|
|
191
|
+
class: store_transaction
|
|
192
|
+
}
|
|
193
|
+
daily_closing_record: "📒 日次締め記録" {
|
|
194
|
+
class: store_transaction
|
|
195
|
+
}
|
|
196
|
+
monthly_report: "📊 月次報告" {
|
|
197
|
+
class: store_transaction
|
|
198
|
+
}
|
|
199
|
+
display_shelf: "🏬 売場棚" {
|
|
200
|
+
class: physical_store
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
# 配置制御用(受け渡しではない)
|
|
204
|
+
purchasing -> sales -> inventory -> customer_management -> closing: {style.opacity: 0}
|
|
205
|
+
|
|
206
|
+
product_master -> purchasing: "仕入先・発注単位"
|
|
207
|
+
purchasing <- inventory: "補充依頼"
|
|
208
|
+
supplier <- purchasing: "発注"
|
|
209
|
+
supplier -> purchasing: "商品" {
|
|
210
|
+
class: material_flow
|
|
211
|
+
}
|
|
212
|
+
purchasing -> display_shelf: "商品" {
|
|
213
|
+
class: material_flow
|
|
214
|
+
}
|
|
215
|
+
purchasing -> purchase_record: "仕入情報"
|
|
216
|
+
purchasing -> inventory_record: "入荷数量"
|
|
217
|
+
customer -> sales: "購入依頼・支払"
|
|
218
|
+
display_shelf -> sales: "商品" {
|
|
219
|
+
class: material_flow
|
|
220
|
+
}
|
|
221
|
+
customer <- sales: "商品" {
|
|
222
|
+
class: material_flow
|
|
223
|
+
}
|
|
224
|
+
product_master -> sales: "売価"
|
|
225
|
+
customer_master -> sales: "つけ上限"
|
|
226
|
+
sales <- credit_ledger: "つけ残高"
|
|
227
|
+
sales -> sales_record: "販売情報"
|
|
228
|
+
sales -> credit_ledger: "つけ販売情報"
|
|
229
|
+
sales_record -> inventory: "販売数量"
|
|
230
|
+
product_master -> inventory: "補充基準"
|
|
231
|
+
inventory -> inventory_record: "在庫数量"
|
|
232
|
+
customer -> customer_management: "登録依頼・つけの支払"
|
|
233
|
+
credit_ledger -> customer_management: "つけ残高"
|
|
234
|
+
customer_master <- customer_management: "顧客情報・つけ上限"
|
|
235
|
+
credit_ledger <- customer_management: "精算記録"
|
|
236
|
+
sales_record -> closing: "当日の販売"
|
|
237
|
+
purchase_record -> closing: "当日の仕入額"
|
|
238
|
+
inventory_record -> closing: "在庫差異"
|
|
239
|
+
credit_ledger -> closing: "つけ残高合計"
|
|
240
|
+
closing -> daily_closing_record: "日次締め"
|
|
241
|
+
closing -> monthly_report: "月次の売上・欠品・つけ残高"
|
|
242
|
+
product_master <- closing: "売価・補充基準の見直し"
|
|
243
|
+
customer_master <- closing: "つけ上限の見直し"
|
|
199
244
|
```
|
|
200
245
|
|
|
201
|
-
|
|
246
|
+
仕入・販売・在庫・顧客・締めの五つのグループが、商品と支払を受け渡し、台帳や記録を読み書きして店舗運営を支える関係を示す。
|
|
202
247
|
|
|
203
248
|
## 6. 詳細 CDFD 一覧
|
|
204
249
|
|
|
@@ -232,49 +277,112 @@ flowchart LR
|
|
|
232
277
|
|
|
233
278
|
本プロダクトの全 CDFD(本書、プロセスグループ別 CDFD、ユースケース別 CDFD)が共通して参照するノード形状・色・絵文字の対応を示す。個々の CDFD は、以下の定義を再掲せず、本章への参照に留める。
|
|
234
279
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
280
|
+
図の記法には D2([[specdojo:cdfd-d2-rulebook|D2 記法ルール]])を採用し、`direction: down` で縦に配置する。プロセスは五つのプロセスグループの代表ノード、データストアは一覧の各行をノードとする。矢印は情報または実行要求の受け渡しであり、実行順や毎回の通過を意味しない。更新の線は更新前の参照を含む。`->`(戻りは `<-`)の通常線は情報、`material_flow` class の太線は商品の物の流れであり、売場棚は物理保管として描く。配置制御用の非表示の線は受け渡しを表さない。起点イベントと担当はプロセス領域の表に置き、図では省略する。店主代表と店番担当は領域の担当であり、対象範囲外の顧客と仕入先だけを外部主体にする。
|
|
281
|
+
|
|
282
|
+
```d2
|
|
283
|
+
direction: down
|
|
284
|
+
|
|
285
|
+
classes: {
|
|
286
|
+
process: {
|
|
287
|
+
shape: rectangle
|
|
288
|
+
style: {
|
|
289
|
+
border-radius: 8
|
|
290
|
+
fill: "#e3f2fd"
|
|
291
|
+
stroke: "#1e88e5"
|
|
292
|
+
font-color: "#000000"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
event: {
|
|
296
|
+
shape: hexagon
|
|
297
|
+
style: {
|
|
298
|
+
fill: "#fff3e0"
|
|
299
|
+
stroke: "#fb8c00"
|
|
300
|
+
font-color: "#000000"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
store_master: {
|
|
304
|
+
shape: cylinder
|
|
305
|
+
style: {
|
|
306
|
+
fill: "#e8f5e9"
|
|
307
|
+
stroke: "#43a047"
|
|
308
|
+
font-color: "#000000"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
store_transaction: {
|
|
312
|
+
shape: cylinder
|
|
313
|
+
style: {
|
|
314
|
+
fill: "#c8e6c9"
|
|
315
|
+
stroke: "#2e7d32"
|
|
316
|
+
font-color: "#000000"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
physical_store: {
|
|
320
|
+
shape: rectangle
|
|
321
|
+
style: {
|
|
322
|
+
border-radius: 20
|
|
323
|
+
fill: "#c8e6c9"
|
|
324
|
+
stroke: "#2e7d32"
|
|
325
|
+
font-color: "#000000"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
actor: {
|
|
329
|
+
shape: rectangle
|
|
330
|
+
style: {
|
|
331
|
+
fill: "#f5f7fa"
|
|
332
|
+
stroke: "#607d8b"
|
|
333
|
+
font-color: "#000000"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
material_flow: {
|
|
337
|
+
style: {
|
|
338
|
+
stroke-width: 3
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
actor_node: "🧑 外部主体" {
|
|
344
|
+
class: actor
|
|
345
|
+
}
|
|
346
|
+
event_node: "⚡ 起点イベント" {
|
|
347
|
+
class: event
|
|
348
|
+
}
|
|
349
|
+
process_node: "⚙️ プロセス/プロセスグループ" {
|
|
350
|
+
class: process
|
|
351
|
+
}
|
|
352
|
+
master_store: "🗄️ マスタ・構成データ" {
|
|
353
|
+
class: store_master
|
|
354
|
+
}
|
|
355
|
+
transaction_store: "🗄️ トランザクションデータ" {
|
|
356
|
+
class: store_transaction
|
|
357
|
+
}
|
|
358
|
+
physical_store_node: "🏬 物理保管" {
|
|
359
|
+
class: physical_store
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
actor_node -> process_node: "情報の流れ"
|
|
363
|
+
event_node -> process_node: "起動条件"
|
|
364
|
+
process_node -> master_store: "参照・更新"
|
|
365
|
+
process_node -> transaction_store: "更新"
|
|
366
|
+
process_node -> physical_store_node: "物の流れ" {
|
|
367
|
+
class: material_flow
|
|
368
|
+
}
|
|
261
369
|
```
|
|
262
370
|
|
|
263
371
|
<!-- prettier-ignore -->
|
|
264
372
|
| 概念 | 形状 | 色 | 絵文字例 |
|
|
265
373
|
| --- | --- | --- | --- |
|
|
266
|
-
| プロセス/プロセスグループ |
|
|
267
|
-
| 起点イベント |
|
|
268
|
-
| データストア(マスタ・構成データ) |
|
|
269
|
-
| データストア(トランザクションデータ) |
|
|
270
|
-
| 物理保管 |
|
|
271
|
-
| 外部主体 |
|
|
272
|
-
| 情報の流れ |
|
|
273
|
-
| 物の流れ |
|
|
374
|
+
| プロセス/プロセスグループ | 角丸四角形(`style.border-radius: 8`) | 青(`#e3f2fd` / `#1e88e5`) | 業務内容が伝わる絵文字(例: 🛒) |
|
|
375
|
+
| 起点イベント | 六角形(`shape: hexagon`) | 橙(`#fff3e0` / `#fb8c00`) | 出来事が伝わる絵文字(例: 🚦) |
|
|
376
|
+
| データストア(マスタ・構成データ) | 円柱(`shape: cylinder`) | 薄い緑(`#e8f5e9` / `#43a047`) | 保管物が伝わる絵文字(例: 📐) |
|
|
377
|
+
| データストア(トランザクションデータ) | 円柱(`shape: cylinder`) | 中間の緑(`#c8e6c9` / `#2e7d32`) | 保管物が伝わる絵文字(例: 📒) |
|
|
378
|
+
| 物理保管 | 大角丸四角形(`style.border-radius: 20`) | 中間の緑(トランザクションデータと同じ) | 保管場所が伝わる絵文字(例: 🏬) |
|
|
379
|
+
| 外部主体 | 四角形(`shape: rectangle`) | グレー(`#f5f7fa` / `#607d8b`) | 主体が伝わる絵文字(例: 🧑) |
|
|
380
|
+
| 情報の流れ | ラベル付き通常線 `->`(戻りは `<-`) | — | — |
|
|
381
|
+
| 物の流れ | ラベル付き太線 `->`(`material_flow` class) | — | — |
|
|
274
382
|
|
|
275
383
|
データストアの色分けは、大分類「データストア」の中の業務上のサブ分類を表す。マスタ・構成データは、他のプロセスから参照される比較的安定した基準情報(商品台帳、顧客台帳)を指す。トランザクションデータは、業務活動に伴い都度更新される記録(販売記録、仕入記録、在庫記録、つけ台帳、締めの記録)を指す。物理保管は現物の保管先であり、いずれの区分にも属さないため、便宜上トランザクションデータと同じ色を用いる。
|
|
276
384
|
|
|
277
|
-
ノード形状・線種そのものの記法は
|
|
385
|
+
ノード形状・線種そのものの記法は [[specdojo:cdfd-d2-rulebook|D2 記法ルール]] に従う。本章は、その記法に基づき駄菓子屋きぬや販売管理の全 CDFD が実際に採用する色・絵文字の割り当てを固定する。
|
|
278
386
|
|
|
279
387
|
## 8. 未決事項
|
|
280
388
|
|