劃分邊界-拆分技巧
1. Activities thatonly involve one actor 只有⼀個參與者,獨⾃做了許多事
2. One-way information flow 單向資訊流
3. Different triggers 不同的觸發點
4. Activities supporting something that is not in the picture 不屬於這個領域故事的活動⾏為
5. Difference in language 同樣的事物有不同的名稱
6. Different use of the same thing 同樣的事物有不同⽤途
8
9.
劃分邊界-拆分技巧
1. Activities thatonly involve one actor 只有⼀個參與者,獨⾃做了許多事
範例:汽⾞租賃業務的風險管理者。 範例:電影院的售票員。
9
圖片來源:https://leanpub.com/domainstorytelling
10.
範例:在汽⾞租賃的例⼦中,sales person 將
contract交給 risk manager 後,對 sales person 來
說,就不需再關⼼ contract 了。
劃分邊界-拆分技巧
2. One-way information flow 單向資訊流
參與者 A 將領域活動物件傳給參與者 B 後,沒有額外資
訊(直接或間接)再回到 A,A 也不會管 B 之後做了什麼。
10
範例:A 將物件交給 B 後,B 做了許多事,但都沒再
與 A 有互動。
圖片來源:https://leanpub.com/domainstorytelling
劃分邊界-拆分技巧
4. Activities supportingsomething that is not in the picture 不屬於這個領域故事的活動⾏為
範例:在汽⾞租賃的例⼦中,風險管理者會建立風險報告,但這份報告在領域故事中並沒有被其他⾓⾊使
⽤,與此次領域故事無關,可能歸屬於其他⼦領域。
12
劃分邊界-拆分技巧
6. Different useof the same thing 同樣的事物有不同⽤途
範例:在汽⾞租賃的例⼦中, 「合約」這個物件,被顧客「簽署」,屬於法律⾏為、建立關係;
被風險管理者「准駁」,擁有財務意涵、⽤於減輕財務風險。
14
圖片來源:https://leanpub.com/domainstorytelling
15.
劃分邊界-拆分技巧
1. Activities thatonly involve one actor 只有⼀個參與者,獨⾃做了許多事
2. One-way information flow 單向資訊流
3. Different triggers 不同的觸發點
4. Activities supporting something that is not in the picture 不屬於這個領域故事的活動⾏為
5. Difference in language 同樣的事物有不同的名稱
6. Different use of the same thing 同樣的事物有不同⽤途
15
劃分原則:從領域專家的⾓度,找到彼此歸屬在⼀起(belongs together)的活動。