@eventmodelers/cli 1.0.72 → 1.0.73

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.
Files changed (26) hide show
  1. package/README.md +19 -5
  2. package/RELEASE_NOTES.md +5 -0
  3. package/cli.js +119 -21
  4. package/package.json +1 -1
  5. package/shared/demo-slices/Understanding Eventsourcing/additem/slice.json +176 -0
  6. package/shared/demo-slices/Understanding Eventsourcing/archiveitem/slice.json +209 -0
  7. package/shared/demo-slices/Understanding Eventsourcing/cartitems/slice.json +236 -0
  8. package/shared/demo-slices/Understanding Eventsourcing/cartpublicationfailed/slice.json +65 -0
  9. package/shared/demo-slices/Understanding Eventsourcing/cartpublished/slice.json +65 -0
  10. package/shared/demo-slices/Understanding Eventsourcing/cartswithproducts/slice.json +105 -0
  11. package/shared/demo-slices/Understanding Eventsourcing/changedprices/slice.json +91 -0
  12. package/shared/demo-slices/Understanding Eventsourcing/changeinventory/slice.json +191 -0
  13. package/shared/demo-slices/Understanding Eventsourcing/changeprice/slice.json +220 -0
  14. package/shared/demo-slices/Understanding Eventsourcing/clearcart/slice.json +219 -0
  15. package/shared/demo-slices/Understanding Eventsourcing/config.json +2631 -0
  16. package/shared/demo-slices/Understanding Eventsourcing/context.json +3 -0
  17. package/shared/demo-slices/Understanding Eventsourcing/index.json +132 -0
  18. package/shared/demo-slices/Understanding Eventsourcing/inventories/slice.json +132 -0
  19. package/shared/demo-slices/Understanding Eventsourcing/itemadded/slice.json +137 -0
  20. package/shared/demo-slices/Understanding Eventsourcing/publishcart/slice.json +230 -0
  21. package/shared/demo-slices/Understanding Eventsourcing/removeitem/slice.json +239 -0
  22. package/shared/demo-slices/Understanding Eventsourcing/submitcart/slice.json +199 -0
  23. package/shared/demo-slices/Understanding Eventsourcing/submittedcartdata/slice.json +90 -0
  24. package/shared/demo-slices/current_context.json +3 -0
  25. package/stacks/modeling-kit/templates/kit/CLAUDE-STANDALONE.md +8 -6
  26. package/stacks/modeling-kit/templates/kit/CLAUDE.md +12 -7
@@ -0,0 +1,2631 @@
1
+ {
2
+ "slices": [
3
+ {
4
+ "id": "6829844f-fbb5-41ab-b948-fdef54c7e9c1",
5
+ "status": "Planned",
6
+ "index": 0,
7
+ "title": "Add Item",
8
+ "context": "Understanding Eventsourcing",
9
+ "sliceType": "STATE_CHANGE",
10
+ "commands": [
11
+ {
12
+ "id": "75ed140d-12c0-44f9-bf81-c2fa4886cf9d",
13
+ "tags": [],
14
+ "lane": "Interaction",
15
+ "modelContext": "Understanding Eventsourcing",
16
+ "slice": "Add Item",
17
+ "title": "Add Item",
18
+ "fields": [
19
+ {
20
+ "name": "aggregateId",
21
+ "type": "UUID",
22
+ "example": "",
23
+ "mapping": "",
24
+ "optional": false,
25
+ "subfields": [],
26
+ "cardinality": "Single",
27
+ "idAttribute": false
28
+ },
29
+ {
30
+ "name": "description",
31
+ "type": "String",
32
+ "example": "",
33
+ "mapping": "",
34
+ "optional": false,
35
+ "subfields": [],
36
+ "cardinality": "Single",
37
+ "idAttribute": false
38
+ },
39
+ {
40
+ "name": "image",
41
+ "type": "String",
42
+ "example": "",
43
+ "mapping": "",
44
+ "optional": false,
45
+ "subfields": [],
46
+ "cardinality": "Single",
47
+ "idAttribute": false
48
+ },
49
+ {
50
+ "name": "price",
51
+ "type": "Double",
52
+ "example": "",
53
+ "mapping": "",
54
+ "optional": false,
55
+ "subfields": [],
56
+ "cardinality": "Single",
57
+ "idAttribute": false
58
+ },
59
+ {
60
+ "name": "itemId",
61
+ "type": "UUID",
62
+ "example": "",
63
+ "mapping": "",
64
+ "optional": false,
65
+ "subfields": [],
66
+ "cardinality": "Single",
67
+ "idAttribute": false
68
+ },
69
+ {
70
+ "name": "productId",
71
+ "type": "UUID",
72
+ "example": "",
73
+ "mapping": "",
74
+ "optional": false,
75
+ "subfields": [],
76
+ "cardinality": "Single",
77
+ "idAttribute": false
78
+ }
79
+ ],
80
+ "type": "COMMAND",
81
+ "description": "",
82
+ "aggregate": "default",
83
+ "aggregateDependencies": [],
84
+ "dependencies": [
85
+ {
86
+ "id": "a39b1e41-7b38-42b1-8ad3-c9cc18ca2f7c",
87
+ "type": "OUTBOUND",
88
+ "title": "Cart Created",
89
+ "elementType": "EVENT"
90
+ },
91
+ {
92
+ "id": "544d0a8c-809c-4670-a9d9-aa8259f43c46",
93
+ "type": "OUTBOUND",
94
+ "title": "Item Added",
95
+ "elementType": "EVENT"
96
+ }
97
+ ],
98
+ "apiEndpoint": "",
99
+ "createsAggregate": false,
100
+ "triggers": [],
101
+ "elementCopy": false,
102
+ "linkedId": "75ed140d-12c0-44f9-bf81-c2fa4886cf9d",
103
+ "sketched": false,
104
+ "prototype": {
105
+ "activeByDefault": false
106
+ },
107
+ "comments": []
108
+ }
109
+ ],
110
+ "events": [
111
+ {
112
+ "id": "a39b1e41-7b38-42b1-8ad3-c9cc18ca2f7c",
113
+ "tags": [],
114
+ "lane": "Events",
115
+ "modelContext": "Understanding Eventsourcing",
116
+ "slice": "Add Item",
117
+ "title": "Cart Created",
118
+ "fields": [
119
+ {
120
+ "name": "aggregateId",
121
+ "type": "UUID",
122
+ "example": "",
123
+ "mapping": "",
124
+ "optional": false,
125
+ "subfields": [],
126
+ "cardinality": "Single",
127
+ "idAttribute": false
128
+ }
129
+ ],
130
+ "type": "EVENT",
131
+ "description": "",
132
+ "aggregate": "default",
133
+ "aggregateDependencies": [],
134
+ "dependencies": [
135
+ {
136
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
137
+ "type": "OUTBOUND",
138
+ "title": "Carts with Products",
139
+ "elementType": "READMODEL"
140
+ },
141
+ {
142
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
143
+ "type": "OUTBOUND",
144
+ "title": "cart items",
145
+ "elementType": "READMODEL"
146
+ },
147
+ {
148
+ "id": "75ed140d-12c0-44f9-bf81-c2fa4886cf9d",
149
+ "type": "INBOUND",
150
+ "title": "Add Item",
151
+ "elementType": "COMMAND"
152
+ }
153
+ ],
154
+ "apiEndpoint": "",
155
+ "createsAggregate": false,
156
+ "triggers": [],
157
+ "elementCopy": false,
158
+ "linkedId": "a39b1e41-7b38-42b1-8ad3-c9cc18ca2f7c",
159
+ "sketched": false,
160
+ "prototype": {
161
+ "activeByDefault": false
162
+ },
163
+ "comments": []
164
+ }
165
+ ],
166
+ "readmodels": [],
167
+ "screens": [],
168
+ "screenImages": [],
169
+ "screenLayouts": [],
170
+ "processors": [],
171
+ "tables": [],
172
+ "specifications": [],
173
+ "storylines": [],
174
+ "chapter": "Understanding Eventsourcing",
175
+ "codeGen": {},
176
+ "notes": [],
177
+ "comments": [],
178
+ "aggregates": []
179
+ },
180
+ {
181
+ "id": "1ee269a6-cdb5-4c83-9c78-a71246bb4985",
182
+ "status": "Planned",
183
+ "index": 0,
184
+ "title": "Item Added",
185
+ "context": "Understanding Eventsourcing",
186
+ "sliceType": "UNDEFINED",
187
+ "commands": [],
188
+ "events": [
189
+ {
190
+ "id": "544d0a8c-809c-4670-a9d9-aa8259f43c46",
191
+ "tags": [],
192
+ "lane": "Events",
193
+ "modelContext": "Understanding Eventsourcing",
194
+ "slice": "Item Added",
195
+ "title": "Item Added",
196
+ "fields": [
197
+ {
198
+ "name": "aggregateId",
199
+ "type": "UUID",
200
+ "example": "",
201
+ "mapping": "",
202
+ "optional": false,
203
+ "subfields": [],
204
+ "cardinality": "Single",
205
+ "idAttribute": false
206
+ },
207
+ {
208
+ "name": "description",
209
+ "type": "String",
210
+ "example": "",
211
+ "mapping": "",
212
+ "optional": false,
213
+ "subfields": [],
214
+ "cardinality": "Single",
215
+ "idAttribute": false
216
+ },
217
+ {
218
+ "name": "image",
219
+ "type": "String",
220
+ "example": "",
221
+ "mapping": "",
222
+ "optional": false,
223
+ "subfields": [],
224
+ "cardinality": "Single",
225
+ "idAttribute": false
226
+ },
227
+ {
228
+ "name": "price",
229
+ "type": "Double",
230
+ "example": "",
231
+ "mapping": "",
232
+ "optional": false,
233
+ "subfields": [],
234
+ "cardinality": "Single",
235
+ "idAttribute": false
236
+ },
237
+ {
238
+ "name": "itemId",
239
+ "type": "UUID",
240
+ "example": "",
241
+ "mapping": "",
242
+ "optional": false,
243
+ "subfields": [],
244
+ "cardinality": "Single",
245
+ "idAttribute": false
246
+ },
247
+ {
248
+ "name": "productId",
249
+ "type": "UUID",
250
+ "example": "",
251
+ "mapping": "",
252
+ "optional": false,
253
+ "subfields": [],
254
+ "cardinality": "Single",
255
+ "idAttribute": false
256
+ },
257
+ {
258
+ "name": "deviceFingerPrint",
259
+ "type": "String",
260
+ "example": "",
261
+ "mapping": "",
262
+ "optional": false,
263
+ "subfields": [],
264
+ "cardinality": "Single",
265
+ "idAttribute": false
266
+ }
267
+ ],
268
+ "type": "EVENT",
269
+ "description": "",
270
+ "aggregate": "default",
271
+ "aggregateDependencies": [],
272
+ "dependencies": [
273
+ {
274
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
275
+ "type": "OUTBOUND",
276
+ "title": "Carts with Products",
277
+ "elementType": "READMODEL"
278
+ },
279
+ {
280
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
281
+ "type": "OUTBOUND",
282
+ "title": "cart items",
283
+ "elementType": "READMODEL"
284
+ },
285
+ {
286
+ "id": "75ed140d-12c0-44f9-bf81-c2fa4886cf9d",
287
+ "type": "INBOUND",
288
+ "title": "Add Item",
289
+ "elementType": "COMMAND"
290
+ }
291
+ ],
292
+ "apiEndpoint": "",
293
+ "createsAggregate": false,
294
+ "triggers": [],
295
+ "elementCopy": false,
296
+ "linkedId": "544d0a8c-809c-4670-a9d9-aa8259f43c46",
297
+ "sketched": false,
298
+ "prototype": {
299
+ "activeByDefault": false
300
+ },
301
+ "comments": []
302
+ }
303
+ ],
304
+ "readmodels": [],
305
+ "screens": [],
306
+ "screenImages": [],
307
+ "screenLayouts": [],
308
+ "processors": [],
309
+ "tables": [],
310
+ "specifications": [],
311
+ "storylines": [],
312
+ "chapter": "Understanding Eventsourcing",
313
+ "codeGen": {},
314
+ "notes": [],
315
+ "comments": [],
316
+ "aggregates": []
317
+ },
318
+ {
319
+ "id": "f263e451-78a6-475e-a112-bff181295e65",
320
+ "status": "Planned",
321
+ "index": 0,
322
+ "title": "Remove Item",
323
+ "context": "Understanding Eventsourcing",
324
+ "sliceType": "STATE_CHANGE",
325
+ "commands": [
326
+ {
327
+ "id": "f04eb51d-6afd-4a33-8e3d-941dea5a3abc",
328
+ "tags": [],
329
+ "lane": "Interaction",
330
+ "modelContext": "Understanding Eventsourcing",
331
+ "slice": "Remove Item",
332
+ "title": "Remove Item",
333
+ "fields": [
334
+ {
335
+ "name": "aggregateId",
336
+ "type": "UUID",
337
+ "example": "",
338
+ "mapping": "",
339
+ "optional": false,
340
+ "subfields": [],
341
+ "cardinality": "Single",
342
+ "idAttribute": false
343
+ },
344
+ {
345
+ "name": "itemId",
346
+ "type": "UUID",
347
+ "example": "",
348
+ "mapping": "",
349
+ "optional": false,
350
+ "subfields": [],
351
+ "cardinality": "Single",
352
+ "idAttribute": false
353
+ }
354
+ ],
355
+ "type": "COMMAND",
356
+ "description": "",
357
+ "aggregate": "default",
358
+ "aggregateDependencies": [],
359
+ "dependencies": [
360
+ {
361
+ "id": "b5b7ae0a-d0a7-4b2b-bc14-2086993eface",
362
+ "type": "OUTBOUND",
363
+ "title": "Item Removed",
364
+ "elementType": "EVENT"
365
+ },
366
+ {
367
+ "id": "9e7ae82a-42f0-4298-85f4-fc2f0f689f43",
368
+ "type": "INBOUND",
369
+ "title": "title",
370
+ "elementType": "SCREEN"
371
+ }
372
+ ],
373
+ "apiEndpoint": "",
374
+ "createsAggregate": false,
375
+ "triggers": [],
376
+ "elementCopy": false,
377
+ "linkedId": "f04eb51d-6afd-4a33-8e3d-941dea5a3abc",
378
+ "sketched": false,
379
+ "prototype": {
380
+ "activeByDefault": false
381
+ },
382
+ "comments": []
383
+ }
384
+ ],
385
+ "events": [
386
+ {
387
+ "id": "b5b7ae0a-d0a7-4b2b-bc14-2086993eface",
388
+ "tags": [],
389
+ "lane": "Events",
390
+ "modelContext": "Understanding Eventsourcing",
391
+ "slice": "Remove Item",
392
+ "title": "Item Removed",
393
+ "fields": [
394
+ {
395
+ "name": "aggregateId",
396
+ "type": "UUID",
397
+ "example": "",
398
+ "mapping": "",
399
+ "optional": false,
400
+ "subfields": [],
401
+ "cardinality": "Single",
402
+ "idAttribute": false
403
+ },
404
+ {
405
+ "name": "itemId",
406
+ "type": "UUID",
407
+ "example": "",
408
+ "mapping": "",
409
+ "optional": false,
410
+ "subfields": [],
411
+ "cardinality": "Single",
412
+ "idAttribute": false
413
+ }
414
+ ],
415
+ "type": "EVENT",
416
+ "description": "",
417
+ "aggregate": "default",
418
+ "aggregateDependencies": [],
419
+ "dependencies": [
420
+ {
421
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
422
+ "type": "OUTBOUND",
423
+ "title": "Carts with Products",
424
+ "elementType": "READMODEL"
425
+ },
426
+ {
427
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
428
+ "type": "OUTBOUND",
429
+ "title": "cart items",
430
+ "elementType": "READMODEL"
431
+ },
432
+ {
433
+ "id": "f04eb51d-6afd-4a33-8e3d-941dea5a3abc",
434
+ "type": "INBOUND",
435
+ "title": "Remove Item",
436
+ "elementType": "COMMAND"
437
+ }
438
+ ],
439
+ "apiEndpoint": "",
440
+ "createsAggregate": false,
441
+ "triggers": [],
442
+ "elementCopy": false,
443
+ "linkedId": "b5b7ae0a-d0a7-4b2b-bc14-2086993eface",
444
+ "sketched": false,
445
+ "prototype": {
446
+ "activeByDefault": false
447
+ },
448
+ "comments": []
449
+ }
450
+ ],
451
+ "readmodels": [],
452
+ "screens": [
453
+ {
454
+ "id": "9e7ae82a-42f0-4298-85f4-fc2f0f689f43",
455
+ "tags": [],
456
+ "lane": "Actor",
457
+ "modelContext": "Understanding Eventsourcing",
458
+ "slice": "Remove Item",
459
+ "title": "title",
460
+ "fields": [
461
+ {
462
+ "name": "aggregateId",
463
+ "type": "UUID",
464
+ "example": "",
465
+ "mapping": "",
466
+ "optional": false,
467
+ "cardinality": "Single",
468
+ "idAttribute": false
469
+ },
470
+ {
471
+ "name": "description",
472
+ "type": "String",
473
+ "example": "",
474
+ "mapping": "",
475
+ "optional": false,
476
+ "cardinality": "Single",
477
+ "idAttribute": false
478
+ },
479
+ {
480
+ "name": "image",
481
+ "type": "String",
482
+ "example": "",
483
+ "mapping": "",
484
+ "optional": false,
485
+ "cardinality": "Single",
486
+ "idAttribute": false
487
+ },
488
+ {
489
+ "name": "itemId",
490
+ "type": "UUID",
491
+ "example": "",
492
+ "mapping": "",
493
+ "optional": false,
494
+ "cardinality": "Single",
495
+ "idAttribute": false
496
+ },
497
+ {
498
+ "name": "price",
499
+ "type": "Double",
500
+ "example": "",
501
+ "mapping": "",
502
+ "optional": false,
503
+ "cardinality": "Single",
504
+ "idAttribute": false
505
+ },
506
+ {
507
+ "name": "totalPrice",
508
+ "type": "Double",
509
+ "example": "",
510
+ "mapping": "",
511
+ "optional": false,
512
+ "cardinality": "Single",
513
+ "idAttribute": false
514
+ }
515
+ ],
516
+ "type": "SCREEN",
517
+ "description": "",
518
+ "aggregate": "default",
519
+ "aggregateDependencies": [],
520
+ "dependencies": [
521
+ {
522
+ "id": "f04eb51d-6afd-4a33-8e3d-941dea5a3abc",
523
+ "type": "OUTBOUND",
524
+ "title": "Remove Item",
525
+ "elementType": "COMMAND"
526
+ },
527
+ {
528
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
529
+ "type": "INBOUND",
530
+ "title": "cart items",
531
+ "elementType": "READMODEL"
532
+ }
533
+ ],
534
+ "apiEndpoint": "",
535
+ "createsAggregate": false,
536
+ "triggers": [],
537
+ "elementCopy": false,
538
+ "linkedId": "9e7ae82a-42f0-4298-85f4-fc2f0f689f43",
539
+ "sketched": false,
540
+ "prototype": {
541
+ "activeByDefault": false
542
+ },
543
+ "comments": []
544
+ }
545
+ ],
546
+ "screenImages": [],
547
+ "screenLayouts": [],
548
+ "processors": [],
549
+ "tables": [],
550
+ "specifications": [],
551
+ "storylines": [],
552
+ "chapter": "Understanding Eventsourcing",
553
+ "codeGen": {},
554
+ "notes": [],
555
+ "comments": [],
556
+ "aggregates": []
557
+ },
558
+ {
559
+ "id": "47781f50-9bf5-425d-adc5-810801b94fb2",
560
+ "status": "Planned",
561
+ "index": 0,
562
+ "title": "cart items",
563
+ "context": "Understanding Eventsourcing",
564
+ "sliceType": "STATE_VIEW",
565
+ "commands": [],
566
+ "events": [],
567
+ "readmodels": [
568
+ {
569
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
570
+ "tags": [],
571
+ "lane": "Interaction",
572
+ "modelContext": "Understanding Eventsourcing",
573
+ "slice": "cart items",
574
+ "title": "cart items",
575
+ "fields": [
576
+ {
577
+ "name": "aggregateId",
578
+ "type": "UUID",
579
+ "example": "",
580
+ "mapping": "",
581
+ "optional": false,
582
+ "subfields": [],
583
+ "cardinality": "Single",
584
+ "idAttribute": true
585
+ },
586
+ {
587
+ "name": "description",
588
+ "type": "String",
589
+ "example": "",
590
+ "mapping": "",
591
+ "optional": false,
592
+ "subfields": [],
593
+ "cardinality": "Single",
594
+ "idAttribute": false
595
+ },
596
+ {
597
+ "name": "image",
598
+ "type": "String",
599
+ "example": "",
600
+ "mapping": "",
601
+ "optional": false,
602
+ "subfields": [],
603
+ "cardinality": "Single",
604
+ "idAttribute": false
605
+ },
606
+ {
607
+ "name": "price",
608
+ "type": "Double",
609
+ "example": "",
610
+ "mapping": "",
611
+ "optional": false,
612
+ "subfields": [],
613
+ "cardinality": "Single",
614
+ "idAttribute": false
615
+ },
616
+ {
617
+ "name": "totalPrice",
618
+ "type": "Double",
619
+ "example": "",
620
+ "mapping": "price",
621
+ "optional": false,
622
+ "subfields": [],
623
+ "cardinality": "Single",
624
+ "idAttribute": false
625
+ },
626
+ {
627
+ "name": "productId",
628
+ "type": "UUID",
629
+ "example": "",
630
+ "mapping": "",
631
+ "optional": false,
632
+ "subfields": [],
633
+ "cardinality": "Single",
634
+ "idAttribute": false
635
+ },
636
+ {
637
+ "name": "itemId",
638
+ "type": "UUID",
639
+ "example": "",
640
+ "mapping": "",
641
+ "optional": false,
642
+ "subfields": [],
643
+ "cardinality": "Single",
644
+ "idAttribute": true
645
+ }
646
+ ],
647
+ "type": "READMODEL",
648
+ "description": "",
649
+ "aggregate": "default",
650
+ "aggregateDependencies": [],
651
+ "dependencies": [
652
+ {
653
+ "id": "9e7ae82a-42f0-4298-85f4-fc2f0f689f43",
654
+ "type": "OUTBOUND",
655
+ "title": "title",
656
+ "elementType": "SCREEN"
657
+ },
658
+ {
659
+ "id": "934c48e4-d999-418b-91b2-a4d7798c4a53",
660
+ "type": "OUTBOUND",
661
+ "title": "title",
662
+ "elementType": "SCREEN"
663
+ },
664
+ {
665
+ "id": "1977b408-2125-4752-992c-6bc36e00f8bb",
666
+ "type": "OUTBOUND",
667
+ "title": "title",
668
+ "elementType": "SCREEN"
669
+ },
670
+ {
671
+ "id": "a39b1e41-7b38-42b1-8ad3-c9cc18ca2f7c",
672
+ "type": "INBOUND",
673
+ "title": "Cart Created",
674
+ "elementType": "EVENT"
675
+ },
676
+ {
677
+ "id": "544d0a8c-809c-4670-a9d9-aa8259f43c46",
678
+ "type": "INBOUND",
679
+ "title": "Item Added",
680
+ "elementType": "EVENT"
681
+ },
682
+ {
683
+ "id": "b5b7ae0a-d0a7-4b2b-bc14-2086993eface",
684
+ "type": "INBOUND",
685
+ "title": "Item Removed",
686
+ "elementType": "EVENT"
687
+ },
688
+ {
689
+ "id": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
690
+ "type": "INBOUND",
691
+ "title": "Cart Cleared",
692
+ "elementType": "EVENT"
693
+ },
694
+ {
695
+ "id": "3d3f9528-08f8-473b-8456-7b03f6d368ca",
696
+ "type": "INBOUND",
697
+ "title": "Item Archived",
698
+ "elementType": "EVENT"
699
+ }
700
+ ],
701
+ "apiEndpoint": "",
702
+ "createsAggregate": false,
703
+ "triggers": [],
704
+ "elementCopy": false,
705
+ "linkedId": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
706
+ "sketched": false,
707
+ "prototype": {
708
+ "activeByDefault": false
709
+ },
710
+ "comments": []
711
+ }
712
+ ],
713
+ "screens": [
714
+ {
715
+ "id": "934c48e4-d999-418b-91b2-a4d7798c4a53",
716
+ "tags": [],
717
+ "lane": "Actor",
718
+ "modelContext": "Understanding Eventsourcing",
719
+ "slice": "cart items",
720
+ "title": "title",
721
+ "fields": [
722
+ {
723
+ "name": "description",
724
+ "type": "String",
725
+ "example": "",
726
+ "mapping": "",
727
+ "optional": false,
728
+ "cardinality": "Single",
729
+ "idAttribute": false
730
+ },
731
+ {
732
+ "name": "image",
733
+ "type": "String",
734
+ "example": "",
735
+ "mapping": "",
736
+ "optional": false,
737
+ "cardinality": "Single",
738
+ "idAttribute": false
739
+ },
740
+ {
741
+ "name": "price",
742
+ "type": "Double",
743
+ "example": "",
744
+ "mapping": "",
745
+ "optional": false,
746
+ "cardinality": "Single",
747
+ "idAttribute": false
748
+ },
749
+ {
750
+ "name": "totalPrice",
751
+ "type": "Double",
752
+ "example": "",
753
+ "mapping": "",
754
+ "optional": false,
755
+ "cardinality": "Single",
756
+ "idAttribute": false
757
+ }
758
+ ],
759
+ "type": "SCREEN",
760
+ "description": "",
761
+ "aggregate": "default",
762
+ "aggregateDependencies": [],
763
+ "dependencies": [
764
+ {
765
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
766
+ "type": "INBOUND",
767
+ "title": "cart items",
768
+ "elementType": "READMODEL"
769
+ }
770
+ ],
771
+ "apiEndpoint": "",
772
+ "createsAggregate": false,
773
+ "triggers": [],
774
+ "elementCopy": false,
775
+ "linkedId": "934c48e4-d999-418b-91b2-a4d7798c4a53",
776
+ "sketched": false,
777
+ "prototype": {
778
+ "activeByDefault": false
779
+ },
780
+ "comments": []
781
+ }
782
+ ],
783
+ "screenImages": [],
784
+ "screenLayouts": [],
785
+ "processors": [],
786
+ "tables": [],
787
+ "specifications": [],
788
+ "storylines": [],
789
+ "chapter": "Understanding Eventsourcing",
790
+ "codeGen": {},
791
+ "notes": [],
792
+ "comments": [],
793
+ "aggregates": []
794
+ },
795
+ {
796
+ "id": "d7e5ba77-fd22-4975-b131-3e942b4859b0",
797
+ "status": "Planned",
798
+ "index": 0,
799
+ "title": "Clear Cart",
800
+ "context": "Understanding Eventsourcing",
801
+ "sliceType": "STATE_CHANGE",
802
+ "commands": [
803
+ {
804
+ "id": "84d6812f-3646-4953-9697-9848d21ca961",
805
+ "tags": [],
806
+ "lane": "Interaction",
807
+ "modelContext": "Understanding Eventsourcing",
808
+ "slice": "Clear Cart",
809
+ "title": "Clear Cart",
810
+ "fields": [
811
+ {
812
+ "name": "aggregateId",
813
+ "type": "UUID",
814
+ "example": "",
815
+ "mapping": "",
816
+ "optional": false,
817
+ "subfields": [],
818
+ "cardinality": "Single",
819
+ "idAttribute": false
820
+ }
821
+ ],
822
+ "type": "COMMAND",
823
+ "description": "",
824
+ "aggregate": "default",
825
+ "aggregateDependencies": [],
826
+ "dependencies": [
827
+ {
828
+ "id": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
829
+ "type": "OUTBOUND",
830
+ "title": "Cart Cleared",
831
+ "elementType": "EVENT"
832
+ },
833
+ {
834
+ "id": "1977b408-2125-4752-992c-6bc36e00f8bb",
835
+ "type": "INBOUND",
836
+ "title": "title",
837
+ "elementType": "SCREEN"
838
+ }
839
+ ],
840
+ "apiEndpoint": "",
841
+ "createsAggregate": false,
842
+ "triggers": [],
843
+ "elementCopy": false,
844
+ "linkedId": "84d6812f-3646-4953-9697-9848d21ca961",
845
+ "sketched": false,
846
+ "prototype": {
847
+ "activeByDefault": false
848
+ },
849
+ "comments": []
850
+ }
851
+ ],
852
+ "events": [
853
+ {
854
+ "id": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
855
+ "tags": [],
856
+ "lane": "Events",
857
+ "modelContext": "Understanding Eventsourcing",
858
+ "slice": "Clear Cart",
859
+ "title": "Cart Cleared",
860
+ "fields": [
861
+ {
862
+ "name": "aggregateId",
863
+ "type": "UUID",
864
+ "example": "",
865
+ "mapping": "",
866
+ "optional": false,
867
+ "subfields": [],
868
+ "cardinality": "Single",
869
+ "idAttribute": false
870
+ }
871
+ ],
872
+ "type": "EVENT",
873
+ "description": "",
874
+ "aggregate": "default",
875
+ "aggregateDependencies": [],
876
+ "dependencies": [
877
+ {
878
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
879
+ "type": "OUTBOUND",
880
+ "title": "cart items",
881
+ "elementType": "READMODEL"
882
+ },
883
+ {
884
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
885
+ "type": "OUTBOUND",
886
+ "title": "Carts with Products",
887
+ "elementType": "READMODEL"
888
+ },
889
+ {
890
+ "id": "84d6812f-3646-4953-9697-9848d21ca961",
891
+ "type": "INBOUND",
892
+ "title": "Clear Cart",
893
+ "elementType": "COMMAND"
894
+ }
895
+ ],
896
+ "apiEndpoint": "",
897
+ "createsAggregate": false,
898
+ "triggers": [],
899
+ "elementCopy": false,
900
+ "linkedId": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
901
+ "sketched": false,
902
+ "prototype": {
903
+ "activeByDefault": false
904
+ },
905
+ "comments": []
906
+ }
907
+ ],
908
+ "readmodels": [],
909
+ "screens": [
910
+ {
911
+ "id": "1977b408-2125-4752-992c-6bc36e00f8bb",
912
+ "tags": [],
913
+ "lane": "Actor",
914
+ "modelContext": "Understanding Eventsourcing",
915
+ "slice": "Clear Cart",
916
+ "title": "title",
917
+ "fields": [
918
+ {
919
+ "name": "aggregateId",
920
+ "type": "UUID",
921
+ "example": "",
922
+ "mapping": "",
923
+ "optional": false,
924
+ "cardinality": "Single",
925
+ "idAttribute": false
926
+ },
927
+ {
928
+ "name": "description",
929
+ "type": "String",
930
+ "example": "",
931
+ "mapping": "",
932
+ "optional": false,
933
+ "cardinality": "Single",
934
+ "idAttribute": false
935
+ },
936
+ {
937
+ "name": "image",
938
+ "type": "String",
939
+ "example": "",
940
+ "mapping": "",
941
+ "optional": false,
942
+ "cardinality": "Single",
943
+ "idAttribute": false
944
+ },
945
+ {
946
+ "name": "itemId",
947
+ "type": "UUID",
948
+ "example": "",
949
+ "mapping": "",
950
+ "optional": false,
951
+ "cardinality": "Single",
952
+ "idAttribute": false
953
+ },
954
+ {
955
+ "name": "price",
956
+ "type": "Double",
957
+ "example": "",
958
+ "mapping": "",
959
+ "optional": false,
960
+ "cardinality": "Single",
961
+ "idAttribute": false
962
+ },
963
+ {
964
+ "name": "totalPrice",
965
+ "type": "Double",
966
+ "example": "",
967
+ "mapping": "",
968
+ "optional": false,
969
+ "cardinality": "Single",
970
+ "idAttribute": false
971
+ }
972
+ ],
973
+ "type": "SCREEN",
974
+ "description": "",
975
+ "aggregate": "default",
976
+ "aggregateDependencies": [],
977
+ "dependencies": [
978
+ {
979
+ "id": "84d6812f-3646-4953-9697-9848d21ca961",
980
+ "type": "OUTBOUND",
981
+ "title": "Clear Cart",
982
+ "elementType": "COMMAND"
983
+ },
984
+ {
985
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
986
+ "type": "INBOUND",
987
+ "title": "cart items",
988
+ "elementType": "READMODEL"
989
+ }
990
+ ],
991
+ "apiEndpoint": "",
992
+ "createsAggregate": false,
993
+ "triggers": [],
994
+ "elementCopy": false,
995
+ "linkedId": "1977b408-2125-4752-992c-6bc36e00f8bb",
996
+ "sketched": false,
997
+ "prototype": {
998
+ "activeByDefault": false
999
+ },
1000
+ "comments": []
1001
+ }
1002
+ ],
1003
+ "screenImages": [],
1004
+ "screenLayouts": [],
1005
+ "processors": [],
1006
+ "tables": [],
1007
+ "specifications": [],
1008
+ "storylines": [],
1009
+ "chapter": "Understanding Eventsourcing",
1010
+ "codeGen": {},
1011
+ "notes": [],
1012
+ "comments": [],
1013
+ "aggregates": []
1014
+ },
1015
+ {
1016
+ "id": "472e6e49-ab4d-408c-9653-df364587036d",
1017
+ "status": "Planned",
1018
+ "index": 0,
1019
+ "title": "Change Inventory",
1020
+ "context": "Understanding Eventsourcing",
1021
+ "sliceType": "AUTOMATION",
1022
+ "commands": [
1023
+ {
1024
+ "id": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
1025
+ "tags": [],
1026
+ "lane": "Interaction",
1027
+ "modelContext": "Understanding Eventsourcing",
1028
+ "slice": "Change Inventory",
1029
+ "title": "Change Inventory",
1030
+ "fields": [
1031
+ {
1032
+ "name": "inventory",
1033
+ "type": "Int",
1034
+ "example": "",
1035
+ "mapping": "",
1036
+ "optional": false,
1037
+ "subfields": [],
1038
+ "cardinality": "Single",
1039
+ "idAttribute": false
1040
+ },
1041
+ {
1042
+ "name": "productId",
1043
+ "type": "UUID",
1044
+ "example": "",
1045
+ "mapping": "",
1046
+ "optional": false,
1047
+ "subfields": [],
1048
+ "cardinality": "Single",
1049
+ "idAttribute": false
1050
+ }
1051
+ ],
1052
+ "type": "COMMAND",
1053
+ "description": "",
1054
+ "aggregate": "default",
1055
+ "aggregateDependencies": [],
1056
+ "dependencies": [
1057
+ {
1058
+ "id": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
1059
+ "type": "OUTBOUND",
1060
+ "title": "Inventory Changed",
1061
+ "elementType": "EVENT"
1062
+ },
1063
+ {
1064
+ "id": "fb1aeac2-88f3-4d0d-8011-7588c1d743ae",
1065
+ "type": "INBOUND",
1066
+ "title": "automation",
1067
+ "elementType": "AUTOMATION"
1068
+ }
1069
+ ],
1070
+ "apiEndpoint": "",
1071
+ "createsAggregate": false,
1072
+ "triggers": [],
1073
+ "elementCopy": false,
1074
+ "linkedId": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
1075
+ "sketched": false,
1076
+ "prototype": {
1077
+ "activeByDefault": false
1078
+ },
1079
+ "comments": []
1080
+ }
1081
+ ],
1082
+ "events": [
1083
+ {
1084
+ "id": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
1085
+ "tags": [],
1086
+ "lane": "Events",
1087
+ "modelContext": "Understanding Eventsourcing",
1088
+ "slice": "Change Inventory",
1089
+ "title": "Inventory Changed",
1090
+ "fields": [
1091
+ {
1092
+ "name": "inventory",
1093
+ "type": "Int",
1094
+ "example": "",
1095
+ "mapping": "",
1096
+ "optional": false,
1097
+ "subfields": [],
1098
+ "cardinality": "Single",
1099
+ "idAttribute": false
1100
+ },
1101
+ {
1102
+ "name": "productId",
1103
+ "type": "UUID",
1104
+ "example": "",
1105
+ "mapping": "",
1106
+ "optional": false,
1107
+ "subfields": [],
1108
+ "cardinality": "Single",
1109
+ "idAttribute": true
1110
+ }
1111
+ ],
1112
+ "type": "EVENT",
1113
+ "description": "",
1114
+ "aggregate": "default",
1115
+ "aggregateDependencies": [],
1116
+ "dependencies": [
1117
+ {
1118
+ "id": "eb95e57c-3b32-45a5-bb85-89078fe07476",
1119
+ "type": "OUTBOUND",
1120
+ "title": "Inventories",
1121
+ "elementType": "READMODEL"
1122
+ },
1123
+ {
1124
+ "id": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
1125
+ "type": "INBOUND",
1126
+ "title": "Change Inventory",
1127
+ "elementType": "COMMAND"
1128
+ }
1129
+ ],
1130
+ "apiEndpoint": "",
1131
+ "createsAggregate": false,
1132
+ "triggers": [],
1133
+ "elementCopy": false,
1134
+ "linkedId": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
1135
+ "sketched": false,
1136
+ "prototype": {
1137
+ "activeByDefault": false
1138
+ },
1139
+ "comments": []
1140
+ }
1141
+ ],
1142
+ "readmodels": [],
1143
+ "screens": [],
1144
+ "screenImages": [],
1145
+ "screenLayouts": [],
1146
+ "processors": [
1147
+ {
1148
+ "id": "fb1aeac2-88f3-4d0d-8011-7588c1d743ae",
1149
+ "tags": [],
1150
+ "lane": "Actor",
1151
+ "modelContext": "Understanding Eventsourcing",
1152
+ "slice": "Change Inventory",
1153
+ "title": "automation",
1154
+ "fields": [
1155
+ {
1156
+ "name": "inventory",
1157
+ "type": "Int",
1158
+ "example": "",
1159
+ "mapping": "",
1160
+ "optional": false,
1161
+ "cardinality": "Single",
1162
+ "idAttribute": false
1163
+ },
1164
+ {
1165
+ "name": "productId",
1166
+ "type": "String",
1167
+ "example": "",
1168
+ "mapping": "",
1169
+ "optional": false,
1170
+ "cardinality": "Single",
1171
+ "idAttribute": false
1172
+ }
1173
+ ],
1174
+ "type": "AUTOMATION",
1175
+ "description": "",
1176
+ "aggregate": "default",
1177
+ "aggregateDependencies": [],
1178
+ "dependencies": [
1179
+ {
1180
+ "id": "9a4189b3-02f8-4c77-8f81-01d7317d5649",
1181
+ "type": "OUTBOUND",
1182
+ "title": "Change Inventory",
1183
+ "elementType": "COMMAND"
1184
+ }
1185
+ ],
1186
+ "apiEndpoint": "",
1187
+ "createsAggregate": false,
1188
+ "triggers": [],
1189
+ "elementCopy": false,
1190
+ "linkedId": "fb1aeac2-88f3-4d0d-8011-7588c1d743ae",
1191
+ "sketched": false,
1192
+ "prototype": {
1193
+ "activeByDefault": false
1194
+ },
1195
+ "comments": []
1196
+ }
1197
+ ],
1198
+ "tables": [],
1199
+ "specifications": [],
1200
+ "storylines": [],
1201
+ "chapter": "Understanding Eventsourcing",
1202
+ "codeGen": {},
1203
+ "notes": [],
1204
+ "comments": [],
1205
+ "aggregates": []
1206
+ },
1207
+ {
1208
+ "id": "0631d89b-9b87-4981-9b37-e745842a6d48",
1209
+ "status": "Planned",
1210
+ "index": 0,
1211
+ "title": "Inventories",
1212
+ "context": "Understanding Eventsourcing",
1213
+ "sliceType": "STATE_VIEW",
1214
+ "commands": [],
1215
+ "events": [],
1216
+ "readmodels": [
1217
+ {
1218
+ "id": "eb95e57c-3b32-45a5-bb85-89078fe07476",
1219
+ "tags": [],
1220
+ "lane": "Interaction",
1221
+ "modelContext": "Understanding Eventsourcing",
1222
+ "slice": "Inventories",
1223
+ "title": "Inventories",
1224
+ "fields": [
1225
+ {
1226
+ "name": "inventory",
1227
+ "type": "Int",
1228
+ "example": "",
1229
+ "mapping": "",
1230
+ "optional": false,
1231
+ "subfields": [],
1232
+ "cardinality": "Single",
1233
+ "idAttribute": false
1234
+ },
1235
+ {
1236
+ "name": "productId",
1237
+ "type": "UUID",
1238
+ "example": "",
1239
+ "mapping": "",
1240
+ "optional": false,
1241
+ "subfields": [],
1242
+ "cardinality": "Single",
1243
+ "idAttribute": true
1244
+ }
1245
+ ],
1246
+ "type": "READMODEL",
1247
+ "description": "",
1248
+ "aggregate": "default",
1249
+ "aggregateDependencies": [],
1250
+ "dependencies": [
1251
+ {
1252
+ "id": "70b2a647-3ff3-4d3f-b269-defda6a78122",
1253
+ "type": "OUTBOUND",
1254
+ "title": "title",
1255
+ "elementType": "SCREEN"
1256
+ },
1257
+ {
1258
+ "id": "ee37a976-e3af-48d5-8c4c-c168294bda9a",
1259
+ "type": "INBOUND",
1260
+ "title": "Inventory Changed",
1261
+ "elementType": "EVENT"
1262
+ }
1263
+ ],
1264
+ "apiEndpoint": "",
1265
+ "createsAggregate": false,
1266
+ "triggers": [],
1267
+ "elementCopy": false,
1268
+ "linkedId": "eb95e57c-3b32-45a5-bb85-89078fe07476",
1269
+ "sketched": false,
1270
+ "prototype": {
1271
+ "activeByDefault": false
1272
+ },
1273
+ "comments": []
1274
+ }
1275
+ ],
1276
+ "screens": [
1277
+ {
1278
+ "id": "70b2a647-3ff3-4d3f-b269-defda6a78122",
1279
+ "tags": [],
1280
+ "lane": "Actor",
1281
+ "modelContext": "Understanding Eventsourcing",
1282
+ "slice": "Inventories",
1283
+ "title": "title",
1284
+ "fields": [
1285
+ {
1286
+ "name": "inventory",
1287
+ "type": "Int",
1288
+ "example": "",
1289
+ "mapping": "",
1290
+ "optional": false,
1291
+ "cardinality": "Single",
1292
+ "idAttribute": false
1293
+ },
1294
+ {
1295
+ "name": "productId",
1296
+ "type": "String",
1297
+ "example": "",
1298
+ "mapping": "",
1299
+ "optional": false,
1300
+ "cardinality": "Single",
1301
+ "idAttribute": false
1302
+ }
1303
+ ],
1304
+ "type": "SCREEN",
1305
+ "description": "",
1306
+ "aggregate": "default",
1307
+ "aggregateDependencies": [],
1308
+ "dependencies": [
1309
+ {
1310
+ "id": "eb95e57c-3b32-45a5-bb85-89078fe07476",
1311
+ "type": "INBOUND",
1312
+ "title": "Inventories",
1313
+ "elementType": "READMODEL"
1314
+ }
1315
+ ],
1316
+ "apiEndpoint": "",
1317
+ "createsAggregate": false,
1318
+ "triggers": [],
1319
+ "elementCopy": false,
1320
+ "linkedId": "70b2a647-3ff3-4d3f-b269-defda6a78122",
1321
+ "sketched": false,
1322
+ "prototype": {
1323
+ "activeByDefault": false
1324
+ },
1325
+ "comments": []
1326
+ }
1327
+ ],
1328
+ "screenImages": [],
1329
+ "screenLayouts": [],
1330
+ "processors": [],
1331
+ "tables": [],
1332
+ "specifications": [],
1333
+ "storylines": [],
1334
+ "chapter": "Understanding Eventsourcing",
1335
+ "codeGen": {},
1336
+ "notes": [],
1337
+ "comments": [],
1338
+ "aggregates": []
1339
+ },
1340
+ {
1341
+ "id": "bffefd48-cb91-482a-b2cc-e17b16fff358",
1342
+ "status": "Planned",
1343
+ "index": 0,
1344
+ "title": "Change Price",
1345
+ "context": "Understanding Eventsourcing",
1346
+ "sliceType": "AUTOMATION",
1347
+ "commands": [
1348
+ {
1349
+ "id": "b3c543d7-e049-4d3e-a953-45b23d156273",
1350
+ "tags": [],
1351
+ "lane": "Interaction",
1352
+ "modelContext": "Understanding Eventsourcing",
1353
+ "slice": "Change Price",
1354
+ "title": "Change Price",
1355
+ "fields": [
1356
+ {
1357
+ "name": "newPrice",
1358
+ "type": "Double",
1359
+ "example": "",
1360
+ "mapping": "",
1361
+ "optional": false,
1362
+ "subfields": [],
1363
+ "cardinality": "Single",
1364
+ "idAttribute": false
1365
+ },
1366
+ {
1367
+ "name": "oldPrice",
1368
+ "type": "Double",
1369
+ "example": "",
1370
+ "mapping": "",
1371
+ "optional": false,
1372
+ "subfields": [],
1373
+ "cardinality": "Single",
1374
+ "idAttribute": false
1375
+ },
1376
+ {
1377
+ "name": "productId",
1378
+ "type": "String",
1379
+ "example": "",
1380
+ "mapping": "",
1381
+ "optional": false,
1382
+ "subfields": [],
1383
+ "cardinality": "Single",
1384
+ "idAttribute": false
1385
+ }
1386
+ ],
1387
+ "type": "COMMAND",
1388
+ "description": "",
1389
+ "aggregate": "default",
1390
+ "aggregateDependencies": [],
1391
+ "dependencies": [
1392
+ {
1393
+ "id": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
1394
+ "type": "OUTBOUND",
1395
+ "title": "Price Changed",
1396
+ "elementType": "EVENT"
1397
+ },
1398
+ {
1399
+ "id": "297ddf35-aa5b-4a5a-b520-e458ea04ed7e",
1400
+ "type": "INBOUND",
1401
+ "title": "automation",
1402
+ "elementType": "AUTOMATION"
1403
+ }
1404
+ ],
1405
+ "apiEndpoint": "",
1406
+ "createsAggregate": false,
1407
+ "triggers": [],
1408
+ "elementCopy": false,
1409
+ "linkedId": "b3c543d7-e049-4d3e-a953-45b23d156273",
1410
+ "sketched": false,
1411
+ "prototype": {
1412
+ "activeByDefault": false
1413
+ },
1414
+ "comments": []
1415
+ }
1416
+ ],
1417
+ "events": [
1418
+ {
1419
+ "id": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
1420
+ "tags": [],
1421
+ "lane": "Events",
1422
+ "modelContext": "Understanding Eventsourcing",
1423
+ "slice": "Change Price",
1424
+ "title": "Price Changed",
1425
+ "fields": [
1426
+ {
1427
+ "name": "newPrice",
1428
+ "type": "Double",
1429
+ "example": "",
1430
+ "mapping": "",
1431
+ "optional": false,
1432
+ "subfields": [],
1433
+ "cardinality": "Single",
1434
+ "idAttribute": false
1435
+ },
1436
+ {
1437
+ "name": "oldPrice",
1438
+ "type": "Double",
1439
+ "example": "",
1440
+ "mapping": "",
1441
+ "optional": false,
1442
+ "subfields": [],
1443
+ "cardinality": "Single",
1444
+ "idAttribute": false
1445
+ },
1446
+ {
1447
+ "name": "productId",
1448
+ "type": "UUID",
1449
+ "example": "",
1450
+ "mapping": "",
1451
+ "optional": false,
1452
+ "subfields": [],
1453
+ "cardinality": "Single",
1454
+ "idAttribute": false
1455
+ }
1456
+ ],
1457
+ "type": "EVENT",
1458
+ "description": "",
1459
+ "aggregate": "default",
1460
+ "aggregateDependencies": [],
1461
+ "dependencies": [
1462
+ {
1463
+ "id": "262b687e-a34a-4395-97a9-040945290cb5",
1464
+ "type": "OUTBOUND",
1465
+ "title": "Changed Prices",
1466
+ "elementType": "READMODEL"
1467
+ },
1468
+ {
1469
+ "id": "b3c543d7-e049-4d3e-a953-45b23d156273",
1470
+ "type": "INBOUND",
1471
+ "title": "Change Price",
1472
+ "elementType": "COMMAND"
1473
+ }
1474
+ ],
1475
+ "apiEndpoint": "",
1476
+ "createsAggregate": false,
1477
+ "triggers": [],
1478
+ "elementCopy": false,
1479
+ "linkedId": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
1480
+ "sketched": false,
1481
+ "prototype": {
1482
+ "activeByDefault": false
1483
+ },
1484
+ "comments": []
1485
+ }
1486
+ ],
1487
+ "readmodels": [],
1488
+ "screens": [],
1489
+ "screenImages": [],
1490
+ "screenLayouts": [],
1491
+ "processors": [
1492
+ {
1493
+ "id": "297ddf35-aa5b-4a5a-b520-e458ea04ed7e",
1494
+ "tags": [],
1495
+ "lane": "Actor",
1496
+ "modelContext": "Understanding Eventsourcing",
1497
+ "slice": "Change Price",
1498
+ "title": "automation",
1499
+ "fields": [
1500
+ {
1501
+ "name": "newPrice",
1502
+ "type": "Double",
1503
+ "example": "",
1504
+ "mapping": "",
1505
+ "optional": false,
1506
+ "cardinality": "Single",
1507
+ "idAttribute": false
1508
+ },
1509
+ {
1510
+ "name": "oldPrice",
1511
+ "type": "Double",
1512
+ "example": "",
1513
+ "mapping": "",
1514
+ "optional": false,
1515
+ "cardinality": "Single",
1516
+ "idAttribute": false
1517
+ },
1518
+ {
1519
+ "name": "productId",
1520
+ "type": "String",
1521
+ "example": "",
1522
+ "mapping": "",
1523
+ "optional": false,
1524
+ "cardinality": "Single",
1525
+ "idAttribute": false
1526
+ }
1527
+ ],
1528
+ "type": "AUTOMATION",
1529
+ "description": "",
1530
+ "aggregate": "default",
1531
+ "aggregateDependencies": [],
1532
+ "dependencies": [
1533
+ {
1534
+ "id": "b3c543d7-e049-4d3e-a953-45b23d156273",
1535
+ "type": "OUTBOUND",
1536
+ "title": "Change Price",
1537
+ "elementType": "COMMAND"
1538
+ }
1539
+ ],
1540
+ "apiEndpoint": "",
1541
+ "createsAggregate": false,
1542
+ "triggers": [],
1543
+ "elementCopy": false,
1544
+ "linkedId": "297ddf35-aa5b-4a5a-b520-e458ea04ed7e",
1545
+ "sketched": false,
1546
+ "prototype": {
1547
+ "activeByDefault": false
1548
+ },
1549
+ "comments": []
1550
+ }
1551
+ ],
1552
+ "tables": [],
1553
+ "specifications": [],
1554
+ "storylines": [],
1555
+ "chapter": "Understanding Eventsourcing",
1556
+ "codeGen": {},
1557
+ "notes": [],
1558
+ "comments": [],
1559
+ "aggregates": []
1560
+ },
1561
+ {
1562
+ "id": "b7e24b44-1c2c-4d42-b81d-298eb48ce19c",
1563
+ "status": "Planned",
1564
+ "index": 0,
1565
+ "title": "Carts with Products",
1566
+ "context": "Understanding Eventsourcing",
1567
+ "sliceType": "STATE_VIEW",
1568
+ "commands": [],
1569
+ "events": [],
1570
+ "readmodels": [
1571
+ {
1572
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
1573
+ "tags": [],
1574
+ "lane": "Interaction",
1575
+ "modelContext": "Understanding Eventsourcing",
1576
+ "slice": "Carts with Products",
1577
+ "title": "Carts with Products",
1578
+ "fields": [
1579
+ {
1580
+ "name": "aggregateId",
1581
+ "type": "UUID",
1582
+ "example": "",
1583
+ "mapping": "",
1584
+ "optional": false,
1585
+ "subfields": [],
1586
+ "cardinality": "Single",
1587
+ "idAttribute": false
1588
+ },
1589
+ {
1590
+ "name": "productId",
1591
+ "type": "UUID",
1592
+ "example": "",
1593
+ "mapping": "",
1594
+ "optional": false,
1595
+ "subfields": [],
1596
+ "cardinality": "Single",
1597
+ "idAttribute": false
1598
+ }
1599
+ ],
1600
+ "type": "READMODEL",
1601
+ "description": "",
1602
+ "aggregate": "default",
1603
+ "aggregateDependencies": [],
1604
+ "dependencies": [
1605
+ {
1606
+ "id": "1ccbf498-e4eb-4eb7-90c9-7c113780a136",
1607
+ "type": "OUTBOUND",
1608
+ "title": "automation",
1609
+ "elementType": "AUTOMATION"
1610
+ },
1611
+ {
1612
+ "id": "a39b1e41-7b38-42b1-8ad3-c9cc18ca2f7c",
1613
+ "type": "INBOUND",
1614
+ "title": "Cart Created",
1615
+ "elementType": "EVENT"
1616
+ },
1617
+ {
1618
+ "id": "544d0a8c-809c-4670-a9d9-aa8259f43c46",
1619
+ "type": "INBOUND",
1620
+ "title": "Item Added",
1621
+ "elementType": "EVENT"
1622
+ },
1623
+ {
1624
+ "id": "b5b7ae0a-d0a7-4b2b-bc14-2086993eface",
1625
+ "type": "INBOUND",
1626
+ "title": "Item Removed",
1627
+ "elementType": "EVENT"
1628
+ },
1629
+ {
1630
+ "id": "d7cb2a4a-6d1a-4abf-9a37-0bdd9b84eb32",
1631
+ "type": "INBOUND",
1632
+ "title": "Cart Cleared",
1633
+ "elementType": "EVENT"
1634
+ },
1635
+ {
1636
+ "id": "3d3f9528-08f8-473b-8456-7b03f6d368ca",
1637
+ "type": "INBOUND",
1638
+ "title": "Item Archived",
1639
+ "elementType": "EVENT"
1640
+ }
1641
+ ],
1642
+ "apiEndpoint": "",
1643
+ "createsAggregate": false,
1644
+ "triggers": [],
1645
+ "elementCopy": false,
1646
+ "linkedId": "22511305-2296-43ba-b8e8-d786d53cd25f",
1647
+ "sketched": false,
1648
+ "prototype": {
1649
+ "activeByDefault": false
1650
+ },
1651
+ "comments": []
1652
+ }
1653
+ ],
1654
+ "screens": [],
1655
+ "screenImages": [],
1656
+ "screenLayouts": [],
1657
+ "processors": [],
1658
+ "tables": [],
1659
+ "specifications": [],
1660
+ "storylines": [],
1661
+ "chapter": "Understanding Eventsourcing",
1662
+ "codeGen": {},
1663
+ "notes": [],
1664
+ "comments": [],
1665
+ "aggregates": []
1666
+ },
1667
+ {
1668
+ "id": "4dbc8407-87a0-4e5b-a9ee-61d0f83d437e",
1669
+ "status": "Planned",
1670
+ "index": 0,
1671
+ "title": "Changed Prices",
1672
+ "context": "Understanding Eventsourcing",
1673
+ "sliceType": "STATE_VIEW",
1674
+ "commands": [],
1675
+ "events": [],
1676
+ "readmodels": [
1677
+ {
1678
+ "id": "262b687e-a34a-4395-97a9-040945290cb5",
1679
+ "tags": [],
1680
+ "lane": "Interaction",
1681
+ "modelContext": "Understanding Eventsourcing",
1682
+ "slice": "Changed Prices",
1683
+ "title": "Changed Prices",
1684
+ "fields": [
1685
+ {
1686
+ "name": "newPrice",
1687
+ "type": "Double",
1688
+ "example": "",
1689
+ "mapping": "",
1690
+ "optional": false,
1691
+ "subfields": [],
1692
+ "cardinality": "Single",
1693
+ "idAttribute": false
1694
+ },
1695
+ {
1696
+ "name": "oldPrice",
1697
+ "type": "Double",
1698
+ "example": "",
1699
+ "mapping": "",
1700
+ "optional": false,
1701
+ "subfields": [],
1702
+ "cardinality": "Single",
1703
+ "idAttribute": false
1704
+ },
1705
+ {
1706
+ "name": "productId",
1707
+ "type": "String",
1708
+ "example": "",
1709
+ "mapping": "",
1710
+ "optional": false,
1711
+ "subfields": [],
1712
+ "cardinality": "Single",
1713
+ "idAttribute": true
1714
+ }
1715
+ ],
1716
+ "type": "READMODEL",
1717
+ "description": "",
1718
+ "aggregate": "default",
1719
+ "aggregateDependencies": [],
1720
+ "dependencies": [
1721
+ {
1722
+ "id": "1ccbf498-e4eb-4eb7-90c9-7c113780a136",
1723
+ "type": "OUTBOUND",
1724
+ "title": "automation",
1725
+ "elementType": "AUTOMATION"
1726
+ },
1727
+ {
1728
+ "id": "5a70c236-a04e-49b2-8dec-ffaffa20cecb",
1729
+ "type": "INBOUND",
1730
+ "title": "Price Changed",
1731
+ "elementType": "EVENT"
1732
+ }
1733
+ ],
1734
+ "apiEndpoint": "",
1735
+ "createsAggregate": false,
1736
+ "triggers": [],
1737
+ "elementCopy": false,
1738
+ "linkedId": "262b687e-a34a-4395-97a9-040945290cb5",
1739
+ "sketched": false,
1740
+ "prototype": {
1741
+ "activeByDefault": false
1742
+ },
1743
+ "comments": []
1744
+ }
1745
+ ],
1746
+ "screens": [],
1747
+ "screenImages": [],
1748
+ "screenLayouts": [],
1749
+ "processors": [],
1750
+ "tables": [],
1751
+ "specifications": [],
1752
+ "storylines": [],
1753
+ "chapter": "Understanding Eventsourcing",
1754
+ "codeGen": {},
1755
+ "notes": [],
1756
+ "comments": [],
1757
+ "aggregates": []
1758
+ },
1759
+ {
1760
+ "id": "ecb9f15d-1700-483e-be5a-71b3aa822644",
1761
+ "status": "Planned",
1762
+ "index": 0,
1763
+ "title": "Archive Item",
1764
+ "context": "Understanding Eventsourcing",
1765
+ "sliceType": "AUTOMATION",
1766
+ "commands": [
1767
+ {
1768
+ "id": "e3e86899-efb7-4d1b-90e5-99b7f1eca099",
1769
+ "tags": [],
1770
+ "lane": "Interaction",
1771
+ "modelContext": "Understanding Eventsourcing",
1772
+ "slice": "Archive Item",
1773
+ "title": "Archive Item",
1774
+ "fields": [
1775
+ {
1776
+ "name": "aggregateId",
1777
+ "type": "UUID",
1778
+ "example": "",
1779
+ "mapping": "",
1780
+ "optional": false,
1781
+ "subfields": [],
1782
+ "cardinality": "Single",
1783
+ "idAttribute": false
1784
+ },
1785
+ {
1786
+ "name": "productId",
1787
+ "type": "UUID",
1788
+ "example": "",
1789
+ "mapping": "",
1790
+ "optional": false,
1791
+ "subfields": [],
1792
+ "cardinality": "Single",
1793
+ "idAttribute": false
1794
+ }
1795
+ ],
1796
+ "type": "COMMAND",
1797
+ "description": "",
1798
+ "aggregate": "default",
1799
+ "aggregateDependencies": [],
1800
+ "dependencies": [
1801
+ {
1802
+ "id": "3d3f9528-08f8-473b-8456-7b03f6d368ca",
1803
+ "type": "OUTBOUND",
1804
+ "title": "Item Archived",
1805
+ "elementType": "EVENT"
1806
+ },
1807
+ {
1808
+ "id": "1ccbf498-e4eb-4eb7-90c9-7c113780a136",
1809
+ "type": "INBOUND",
1810
+ "title": "automation",
1811
+ "elementType": "AUTOMATION"
1812
+ }
1813
+ ],
1814
+ "apiEndpoint": "",
1815
+ "createsAggregate": false,
1816
+ "triggers": [],
1817
+ "elementCopy": false,
1818
+ "linkedId": "e3e86899-efb7-4d1b-90e5-99b7f1eca099",
1819
+ "sketched": false,
1820
+ "prototype": {
1821
+ "activeByDefault": false
1822
+ },
1823
+ "comments": []
1824
+ }
1825
+ ],
1826
+ "events": [
1827
+ {
1828
+ "id": "3d3f9528-08f8-473b-8456-7b03f6d368ca",
1829
+ "tags": [],
1830
+ "lane": "Events",
1831
+ "modelContext": "Understanding Eventsourcing",
1832
+ "slice": "Archive Item",
1833
+ "title": "Item Archived",
1834
+ "fields": [
1835
+ {
1836
+ "name": "aggregateId",
1837
+ "type": "UUID",
1838
+ "example": "",
1839
+ "mapping": "",
1840
+ "optional": false,
1841
+ "subfields": [],
1842
+ "cardinality": "Single",
1843
+ "idAttribute": false
1844
+ },
1845
+ {
1846
+ "name": "itemId",
1847
+ "type": "UUID",
1848
+ "example": "",
1849
+ "mapping": "productId",
1850
+ "optional": false,
1851
+ "subfields": [],
1852
+ "cardinality": "Single",
1853
+ "idAttribute": false
1854
+ }
1855
+ ],
1856
+ "type": "EVENT",
1857
+ "description": "",
1858
+ "aggregate": "default",
1859
+ "aggregateDependencies": [],
1860
+ "dependencies": [
1861
+ {
1862
+ "id": "631c5aa8-0f9e-4a8f-b7f6-91174cae2b82",
1863
+ "type": "OUTBOUND",
1864
+ "title": "cart items",
1865
+ "elementType": "READMODEL"
1866
+ },
1867
+ {
1868
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
1869
+ "type": "OUTBOUND",
1870
+ "title": "Carts with Products",
1871
+ "elementType": "READMODEL"
1872
+ },
1873
+ {
1874
+ "id": "e3e86899-efb7-4d1b-90e5-99b7f1eca099",
1875
+ "type": "INBOUND",
1876
+ "title": "Archive Item",
1877
+ "elementType": "COMMAND"
1878
+ }
1879
+ ],
1880
+ "apiEndpoint": "",
1881
+ "createsAggregate": false,
1882
+ "triggers": [],
1883
+ "elementCopy": false,
1884
+ "linkedId": "3d3f9528-08f8-473b-8456-7b03f6d368ca",
1885
+ "sketched": false,
1886
+ "prototype": {
1887
+ "activeByDefault": false
1888
+ },
1889
+ "comments": []
1890
+ }
1891
+ ],
1892
+ "readmodels": [],
1893
+ "screens": [],
1894
+ "screenImages": [],
1895
+ "screenLayouts": [],
1896
+ "processors": [
1897
+ {
1898
+ "id": "1ccbf498-e4eb-4eb7-90c9-7c113780a136",
1899
+ "tags": [],
1900
+ "lane": "Actor",
1901
+ "modelContext": "Understanding Eventsourcing",
1902
+ "slice": "Archive Item",
1903
+ "title": "automation",
1904
+ "fields": [
1905
+ {
1906
+ "name": "aggregateId",
1907
+ "type": "UUID",
1908
+ "example": "",
1909
+ "mapping": "cartId",
1910
+ "optional": false,
1911
+ "cardinality": "Single",
1912
+ "idAttribute": false
1913
+ },
1914
+ {
1915
+ "name": "productId",
1916
+ "type": "UUID",
1917
+ "example": "",
1918
+ "mapping": "",
1919
+ "optional": false,
1920
+ "cardinality": "Single",
1921
+ "idAttribute": false
1922
+ }
1923
+ ],
1924
+ "type": "AUTOMATION",
1925
+ "description": "",
1926
+ "aggregate": "default",
1927
+ "aggregateDependencies": [],
1928
+ "dependencies": [
1929
+ {
1930
+ "id": "e3e86899-efb7-4d1b-90e5-99b7f1eca099",
1931
+ "type": "OUTBOUND",
1932
+ "title": "Archive Item",
1933
+ "elementType": "COMMAND"
1934
+ },
1935
+ {
1936
+ "id": "22511305-2296-43ba-b8e8-d786d53cd25f",
1937
+ "type": "INBOUND",
1938
+ "title": "Carts with Products",
1939
+ "elementType": "READMODEL"
1940
+ },
1941
+ {
1942
+ "id": "262b687e-a34a-4395-97a9-040945290cb5",
1943
+ "type": "INBOUND",
1944
+ "title": "Changed Prices",
1945
+ "elementType": "READMODEL"
1946
+ }
1947
+ ],
1948
+ "apiEndpoint": "",
1949
+ "createsAggregate": false,
1950
+ "triggers": [],
1951
+ "elementCopy": false,
1952
+ "linkedId": "1ccbf498-e4eb-4eb7-90c9-7c113780a136",
1953
+ "sketched": false,
1954
+ "prototype": {
1955
+ "activeByDefault": false
1956
+ },
1957
+ "comments": []
1958
+ }
1959
+ ],
1960
+ "tables": [],
1961
+ "specifications": [],
1962
+ "storylines": [],
1963
+ "chapter": "Understanding Eventsourcing",
1964
+ "codeGen": {},
1965
+ "notes": [],
1966
+ "comments": [],
1967
+ "aggregates": []
1968
+ },
1969
+ {
1970
+ "id": "46e2eee1-54ef-4a9c-9403-a3403bf45943",
1971
+ "status": "Planned",
1972
+ "index": 0,
1973
+ "title": "Submit Cart",
1974
+ "context": "Understanding Eventsourcing",
1975
+ "sliceType": "STATE_CHANGE",
1976
+ "commands": [
1977
+ {
1978
+ "id": "af612742-5aba-4d05-950a-fae77c5f6307",
1979
+ "tags": [],
1980
+ "lane": "Interaction",
1981
+ "modelContext": "Understanding Eventsourcing",
1982
+ "slice": "Submit Cart",
1983
+ "title": "Submit Cart",
1984
+ "fields": [
1985
+ {
1986
+ "name": "aggregateId",
1987
+ "type": "UUID",
1988
+ "example": "",
1989
+ "mapping": "",
1990
+ "optional": false,
1991
+ "subfields": [],
1992
+ "cardinality": "Single",
1993
+ "idAttribute": false
1994
+ },
1995
+ {
1996
+ "name": "orderedProducts",
1997
+ "type": "Custom",
1998
+ "example": "",
1999
+ "mapping": "",
2000
+ "optional": false,
2001
+ "cardinality": "List",
2002
+ "idAttribute": false
2003
+ }
2004
+ ],
2005
+ "type": "COMMAND",
2006
+ "description": "",
2007
+ "aggregate": "default",
2008
+ "aggregateDependencies": [],
2009
+ "dependencies": [
2010
+ {
2011
+ "id": "29ae25b9-56cd-4086-bbfe-a64efb30d240",
2012
+ "type": "OUTBOUND",
2013
+ "title": "Cart Submitted",
2014
+ "elementType": "EVENT"
2015
+ },
2016
+ {
2017
+ "id": "0e77e668-00df-404a-9334-3f22153c7ab6",
2018
+ "type": "INBOUND",
2019
+ "title": "title",
2020
+ "elementType": "SCREEN"
2021
+ }
2022
+ ],
2023
+ "apiEndpoint": "",
2024
+ "createsAggregate": false,
2025
+ "triggers": [],
2026
+ "elementCopy": false,
2027
+ "linkedId": "af612742-5aba-4d05-950a-fae77c5f6307",
2028
+ "sketched": false,
2029
+ "prototype": {
2030
+ "activeByDefault": false
2031
+ },
2032
+ "comments": []
2033
+ }
2034
+ ],
2035
+ "events": [
2036
+ {
2037
+ "id": "29ae25b9-56cd-4086-bbfe-a64efb30d240",
2038
+ "tags": [],
2039
+ "lane": "Events",
2040
+ "modelContext": "Understanding Eventsourcing",
2041
+ "slice": "Submit Cart",
2042
+ "title": "Cart Submitted",
2043
+ "fields": [
2044
+ {
2045
+ "name": "aggregateId",
2046
+ "type": "UUID",
2047
+ "example": "",
2048
+ "mapping": "",
2049
+ "optional": false,
2050
+ "subfields": [],
2051
+ "cardinality": "Single",
2052
+ "idAttribute": false
2053
+ },
2054
+ {
2055
+ "name": "orderedProducts",
2056
+ "type": "Custom",
2057
+ "example": "productId, price",
2058
+ "mapping": "",
2059
+ "optional": false,
2060
+ "cardinality": "List",
2061
+ "idAttribute": false
2062
+ },
2063
+ {
2064
+ "name": "totalPrice",
2065
+ "type": "Double",
2066
+ "example": "",
2067
+ "mapping": "orderedProducts",
2068
+ "optional": false,
2069
+ "subfields": [],
2070
+ "cardinality": "Single",
2071
+ "idAttribute": false
2072
+ }
2073
+ ],
2074
+ "type": "EVENT",
2075
+ "description": "",
2076
+ "aggregate": "default",
2077
+ "aggregateDependencies": [],
2078
+ "dependencies": [
2079
+ {
2080
+ "id": "e3dc2c7e-7327-480a-bdb4-4b2055327540",
2081
+ "type": "OUTBOUND",
2082
+ "title": "Submitted Cart Data",
2083
+ "elementType": "READMODEL"
2084
+ },
2085
+ {
2086
+ "id": "af612742-5aba-4d05-950a-fae77c5f6307",
2087
+ "type": "INBOUND",
2088
+ "title": "Submit Cart",
2089
+ "elementType": "COMMAND"
2090
+ }
2091
+ ],
2092
+ "apiEndpoint": "",
2093
+ "createsAggregate": false,
2094
+ "triggers": [],
2095
+ "elementCopy": false,
2096
+ "linkedId": "29ae25b9-56cd-4086-bbfe-a64efb30d240",
2097
+ "sketched": false,
2098
+ "prototype": {
2099
+ "activeByDefault": false
2100
+ },
2101
+ "comments": []
2102
+ }
2103
+ ],
2104
+ "readmodels": [],
2105
+ "screens": [
2106
+ {
2107
+ "id": "0e77e668-00df-404a-9334-3f22153c7ab6",
2108
+ "tags": [],
2109
+ "lane": "Actor",
2110
+ "modelContext": "Understanding Eventsourcing",
2111
+ "slice": "Submit Cart",
2112
+ "title": "title",
2113
+ "fields": [
2114
+ {
2115
+ "name": "aggregateId",
2116
+ "type": "UUID",
2117
+ "example": "",
2118
+ "mapping": "",
2119
+ "optional": false,
2120
+ "cardinality": "Single",
2121
+ "idAttribute": false
2122
+ },
2123
+ {
2124
+ "name": "orderedProducts",
2125
+ "type": "Custom",
2126
+ "example": "{\"productid\":UUID, \"price\":Double}",
2127
+ "mapping": "",
2128
+ "optional": false,
2129
+ "cardinality": "Single",
2130
+ "idAttribute": false
2131
+ }
2132
+ ],
2133
+ "type": "SCREEN",
2134
+ "description": "",
2135
+ "aggregate": "default",
2136
+ "aggregateDependencies": [],
2137
+ "dependencies": [
2138
+ {
2139
+ "id": "af612742-5aba-4d05-950a-fae77c5f6307",
2140
+ "type": "OUTBOUND",
2141
+ "title": "Submit Cart",
2142
+ "elementType": "COMMAND"
2143
+ }
2144
+ ],
2145
+ "apiEndpoint": "",
2146
+ "createsAggregate": false,
2147
+ "triggers": [],
2148
+ "elementCopy": false,
2149
+ "linkedId": "0e77e668-00df-404a-9334-3f22153c7ab6",
2150
+ "sketched": false,
2151
+ "prototype": {
2152
+ "activeByDefault": false
2153
+ },
2154
+ "comments": []
2155
+ }
2156
+ ],
2157
+ "screenImages": [],
2158
+ "screenLayouts": [],
2159
+ "processors": [],
2160
+ "tables": [],
2161
+ "specifications": [],
2162
+ "storylines": [],
2163
+ "chapter": "Understanding Eventsourcing",
2164
+ "codeGen": {},
2165
+ "notes": [],
2166
+ "comments": [],
2167
+ "aggregates": []
2168
+ },
2169
+ {
2170
+ "id": "412dfce9-0843-4ac0-82e5-4e645716d502",
2171
+ "status": "Planned",
2172
+ "index": 0,
2173
+ "title": "Submitted Cart Data",
2174
+ "context": "Understanding Eventsourcing",
2175
+ "sliceType": "STATE_VIEW",
2176
+ "commands": [],
2177
+ "events": [],
2178
+ "readmodels": [
2179
+ {
2180
+ "id": "e3dc2c7e-7327-480a-bdb4-4b2055327540",
2181
+ "tags": [],
2182
+ "lane": "Interaction",
2183
+ "modelContext": "Understanding Eventsourcing",
2184
+ "slice": "Submitted Cart Data",
2185
+ "title": "Submitted Cart Data",
2186
+ "fields": [
2187
+ {
2188
+ "name": "aggregateId",
2189
+ "type": "UUID",
2190
+ "example": "",
2191
+ "mapping": "",
2192
+ "optional": false,
2193
+ "subfields": [],
2194
+ "cardinality": "Single",
2195
+ "idAttribute": false
2196
+ },
2197
+ {
2198
+ "name": "orderedProducts",
2199
+ "type": "Custom",
2200
+ "example": "productId, price",
2201
+ "mapping": "",
2202
+ "optional": false,
2203
+ "cardinality": "List",
2204
+ "idAttribute": false
2205
+ },
2206
+ {
2207
+ "name": "totalPrice",
2208
+ "type": "Double",
2209
+ "example": "",
2210
+ "mapping": "orderedProducts",
2211
+ "optional": false,
2212
+ "subfields": [],
2213
+ "cardinality": "Single",
2214
+ "idAttribute": false
2215
+ }
2216
+ ],
2217
+ "type": "READMODEL",
2218
+ "description": "",
2219
+ "aggregate": "default",
2220
+ "aggregateDependencies": [],
2221
+ "dependencies": [
2222
+ {
2223
+ "id": "e3073105-b883-444b-b7d2-170de493e093",
2224
+ "type": "OUTBOUND",
2225
+ "title": "automation",
2226
+ "elementType": "AUTOMATION"
2227
+ },
2228
+ {
2229
+ "id": "29ae25b9-56cd-4086-bbfe-a64efb30d240",
2230
+ "type": "INBOUND",
2231
+ "title": "Cart Submitted",
2232
+ "elementType": "EVENT"
2233
+ }
2234
+ ],
2235
+ "apiEndpoint": "",
2236
+ "createsAggregate": false,
2237
+ "triggers": [],
2238
+ "elementCopy": false,
2239
+ "linkedId": "e3dc2c7e-7327-480a-bdb4-4b2055327540",
2240
+ "sketched": false,
2241
+ "prototype": {
2242
+ "activeByDefault": false
2243
+ },
2244
+ "comments": []
2245
+ }
2246
+ ],
2247
+ "screens": [],
2248
+ "screenImages": [],
2249
+ "screenLayouts": [],
2250
+ "processors": [],
2251
+ "tables": [],
2252
+ "specifications": [],
2253
+ "storylines": [],
2254
+ "chapter": "Understanding Eventsourcing",
2255
+ "codeGen": {},
2256
+ "notes": [],
2257
+ "comments": [],
2258
+ "aggregates": []
2259
+ },
2260
+ {
2261
+ "id": "c8427265-9c14-4d11-91ee-a88f22ee74cd",
2262
+ "status": "Planned",
2263
+ "index": 0,
2264
+ "title": "Publish Cart",
2265
+ "context": "Understanding Eventsourcing",
2266
+ "sliceType": "AUTOMATION",
2267
+ "commands": [
2268
+ {
2269
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
2270
+ "tags": [],
2271
+ "lane": "Interaction",
2272
+ "modelContext": "Understanding Eventsourcing",
2273
+ "slice": "Publish Cart",
2274
+ "title": "Publish Cart",
2275
+ "fields": [
2276
+ {
2277
+ "name": "aggregateId",
2278
+ "type": "UUID",
2279
+ "example": "",
2280
+ "mapping": "",
2281
+ "optional": false,
2282
+ "subfields": [],
2283
+ "cardinality": "Single",
2284
+ "idAttribute": false
2285
+ },
2286
+ {
2287
+ "name": "orderedProducts",
2288
+ "type": "Custom",
2289
+ "example": "productId, price",
2290
+ "mapping": "",
2291
+ "optional": false,
2292
+ "cardinality": "List",
2293
+ "idAttribute": false
2294
+ },
2295
+ {
2296
+ "name": "totalPrice",
2297
+ "type": "Double",
2298
+ "example": "",
2299
+ "mapping": "orderedProducts",
2300
+ "optional": false,
2301
+ "subfields": [],
2302
+ "cardinality": "Single",
2303
+ "idAttribute": false
2304
+ }
2305
+ ],
2306
+ "type": "COMMAND",
2307
+ "description": "",
2308
+ "aggregate": "default",
2309
+ "aggregateDependencies": [],
2310
+ "dependencies": [
2311
+ {
2312
+ "id": "efe58df2-5a4a-4344-9759-d4d2779c1045",
2313
+ "type": "OUTBOUND",
2314
+ "title": "Cart Publication Failed",
2315
+ "elementType": "EVENT"
2316
+ },
2317
+ {
2318
+ "id": "8dc753b4-a03e-4052-b5c6-ffcb84fdb023",
2319
+ "type": "OUTBOUND",
2320
+ "title": "Cart Published",
2321
+ "elementType": "EVENT"
2322
+ },
2323
+ {
2324
+ "id": "eb816080-8140-4db8-8a65-f96df8876ec8",
2325
+ "type": "OUTBOUND",
2326
+ "title": "External Cart Published",
2327
+ "elementType": "EVENT"
2328
+ },
2329
+ {
2330
+ "id": "e3073105-b883-444b-b7d2-170de493e093",
2331
+ "type": "INBOUND",
2332
+ "title": "automation",
2333
+ "elementType": "AUTOMATION"
2334
+ }
2335
+ ],
2336
+ "apiEndpoint": "",
2337
+ "createsAggregate": false,
2338
+ "triggers": [],
2339
+ "elementCopy": false,
2340
+ "linkedId": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
2341
+ "sketched": false,
2342
+ "prototype": {
2343
+ "activeByDefault": false
2344
+ },
2345
+ "comments": []
2346
+ }
2347
+ ],
2348
+ "events": [
2349
+ {
2350
+ "id": "eb816080-8140-4db8-8a65-f96df8876ec8",
2351
+ "tags": [],
2352
+ "lane": "Events",
2353
+ "modelContext": "Understanding Eventsourcing",
2354
+ "slice": "Publish Cart",
2355
+ "title": "External Cart Published",
2356
+ "fields": [
2357
+ {
2358
+ "name": "aggregateId",
2359
+ "type": "UUID",
2360
+ "example": "",
2361
+ "mapping": "",
2362
+ "optional": false,
2363
+ "subfields": [],
2364
+ "cardinality": "Single",
2365
+ "idAttribute": false
2366
+ },
2367
+ {
2368
+ "name": "orderedProducts",
2369
+ "type": "Custom",
2370
+ "example": "productId, price",
2371
+ "mapping": "",
2372
+ "optional": false,
2373
+ "cardinality": "List",
2374
+ "idAttribute": false
2375
+ },
2376
+ {
2377
+ "name": "totalPrice",
2378
+ "type": "Double",
2379
+ "example": "",
2380
+ "mapping": "orderedProducts",
2381
+ "optional": false,
2382
+ "subfields": [],
2383
+ "cardinality": "Single",
2384
+ "idAttribute": false
2385
+ }
2386
+ ],
2387
+ "type": "EVENT",
2388
+ "description": "",
2389
+ "aggregate": "default",
2390
+ "aggregateDependencies": [],
2391
+ "dependencies": [
2392
+ {
2393
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
2394
+ "type": "INBOUND",
2395
+ "title": "Publish Cart",
2396
+ "elementType": "COMMAND"
2397
+ }
2398
+ ],
2399
+ "apiEndpoint": "",
2400
+ "createsAggregate": false,
2401
+ "triggers": [],
2402
+ "elementCopy": false,
2403
+ "linkedId": "eb816080-8140-4db8-8a65-f96df8876ec8",
2404
+ "sketched": false,
2405
+ "prototype": {
2406
+ "activeByDefault": false
2407
+ },
2408
+ "comments": []
2409
+ }
2410
+ ],
2411
+ "readmodels": [],
2412
+ "screens": [],
2413
+ "screenImages": [],
2414
+ "screenLayouts": [],
2415
+ "processors": [
2416
+ {
2417
+ "id": "e3073105-b883-444b-b7d2-170de493e093",
2418
+ "tags": [],
2419
+ "lane": "Actor",
2420
+ "modelContext": "Understanding Eventsourcing",
2421
+ "slice": "Publish Cart",
2422
+ "title": "automation",
2423
+ "fields": [
2424
+ {
2425
+ "name": "aggregateId",
2426
+ "type": "UUID",
2427
+ "example": "",
2428
+ "mapping": "",
2429
+ "optional": false,
2430
+ "cardinality": "Single",
2431
+ "idAttribute": false
2432
+ },
2433
+ {
2434
+ "name": "orderedProducts",
2435
+ "type": "Custom",
2436
+ "example": "productId, price",
2437
+ "mapping": "",
2438
+ "optional": false,
2439
+ "cardinality": "List",
2440
+ "idAttribute": false
2441
+ },
2442
+ {
2443
+ "name": "totalPrice",
2444
+ "type": "Double",
2445
+ "example": "",
2446
+ "mapping": "orderedProducts",
2447
+ "optional": false,
2448
+ "cardinality": "Single",
2449
+ "idAttribute": false
2450
+ }
2451
+ ],
2452
+ "type": "AUTOMATION",
2453
+ "description": "",
2454
+ "aggregate": "default",
2455
+ "aggregateDependencies": [],
2456
+ "dependencies": [
2457
+ {
2458
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
2459
+ "type": "OUTBOUND",
2460
+ "title": "Publish Cart",
2461
+ "elementType": "COMMAND"
2462
+ },
2463
+ {
2464
+ "id": "e3dc2c7e-7327-480a-bdb4-4b2055327540",
2465
+ "type": "INBOUND",
2466
+ "title": "Submitted Cart Data",
2467
+ "elementType": "READMODEL"
2468
+ }
2469
+ ],
2470
+ "apiEndpoint": "",
2471
+ "createsAggregate": false,
2472
+ "triggers": [],
2473
+ "elementCopy": false,
2474
+ "linkedId": "e3073105-b883-444b-b7d2-170de493e093",
2475
+ "sketched": false,
2476
+ "prototype": {
2477
+ "activeByDefault": false
2478
+ },
2479
+ "comments": []
2480
+ }
2481
+ ],
2482
+ "tables": [],
2483
+ "specifications": [],
2484
+ "storylines": [],
2485
+ "chapter": "Understanding Eventsourcing",
2486
+ "codeGen": {},
2487
+ "notes": [],
2488
+ "comments": [],
2489
+ "aggregates": []
2490
+ },
2491
+ {
2492
+ "id": "4d9b60f9-f59f-4475-bfd8-8a4ca686f17f",
2493
+ "status": "Planned",
2494
+ "index": 0,
2495
+ "title": "Cart Publication Failed",
2496
+ "context": "Understanding Eventsourcing",
2497
+ "sliceType": "UNDEFINED",
2498
+ "commands": [],
2499
+ "events": [
2500
+ {
2501
+ "id": "efe58df2-5a4a-4344-9759-d4d2779c1045",
2502
+ "tags": [],
2503
+ "lane": "Events",
2504
+ "modelContext": "Understanding Eventsourcing",
2505
+ "slice": "Cart Publication Failed",
2506
+ "title": "Cart Publication Failed",
2507
+ "fields": [
2508
+ {
2509
+ "name": "aggregateId",
2510
+ "type": "UUID",
2511
+ "example": "",
2512
+ "mapping": "",
2513
+ "optional": false,
2514
+ "subfields": [],
2515
+ "cardinality": "Single",
2516
+ "idAttribute": false
2517
+ }
2518
+ ],
2519
+ "type": "EVENT",
2520
+ "description": "",
2521
+ "aggregate": "default",
2522
+ "aggregateDependencies": [],
2523
+ "dependencies": [
2524
+ {
2525
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
2526
+ "type": "INBOUND",
2527
+ "title": "Publish Cart",
2528
+ "elementType": "COMMAND"
2529
+ }
2530
+ ],
2531
+ "apiEndpoint": "",
2532
+ "createsAggregate": false,
2533
+ "triggers": [],
2534
+ "elementCopy": false,
2535
+ "linkedId": "efe58df2-5a4a-4344-9759-d4d2779c1045",
2536
+ "sketched": false,
2537
+ "prototype": {
2538
+ "activeByDefault": false
2539
+ },
2540
+ "comments": []
2541
+ }
2542
+ ],
2543
+ "readmodels": [],
2544
+ "screens": [],
2545
+ "screenImages": [],
2546
+ "screenLayouts": [],
2547
+ "processors": [],
2548
+ "tables": [],
2549
+ "specifications": [],
2550
+ "storylines": [],
2551
+ "chapter": "Understanding Eventsourcing",
2552
+ "codeGen": {},
2553
+ "notes": [],
2554
+ "comments": [],
2555
+ "aggregates": []
2556
+ },
2557
+ {
2558
+ "id": "cccef300-beb0-41de-8127-df7a8fd8a5b7",
2559
+ "status": "Planned",
2560
+ "index": 0,
2561
+ "title": "Cart Published",
2562
+ "context": "Understanding Eventsourcing",
2563
+ "sliceType": "UNDEFINED",
2564
+ "commands": [],
2565
+ "events": [
2566
+ {
2567
+ "id": "8dc753b4-a03e-4052-b5c6-ffcb84fdb023",
2568
+ "tags": [],
2569
+ "lane": "Events",
2570
+ "modelContext": "Understanding Eventsourcing",
2571
+ "slice": "Cart Published",
2572
+ "title": "Cart Published",
2573
+ "fields": [
2574
+ {
2575
+ "name": "aggregateId",
2576
+ "type": "UUID",
2577
+ "example": "",
2578
+ "mapping": "",
2579
+ "optional": false,
2580
+ "subfields": [],
2581
+ "cardinality": "Single",
2582
+ "idAttribute": false
2583
+ }
2584
+ ],
2585
+ "type": "EVENT",
2586
+ "description": "",
2587
+ "aggregate": "default",
2588
+ "aggregateDependencies": [],
2589
+ "dependencies": [
2590
+ {
2591
+ "id": "1ecaf8a8-2e66-4212-8813-c9f614736e5a",
2592
+ "type": "INBOUND",
2593
+ "title": "Publish Cart",
2594
+ "elementType": "COMMAND"
2595
+ }
2596
+ ],
2597
+ "apiEndpoint": "",
2598
+ "createsAggregate": false,
2599
+ "triggers": [],
2600
+ "elementCopy": false,
2601
+ "linkedId": "8dc753b4-a03e-4052-b5c6-ffcb84fdb023",
2602
+ "sketched": false,
2603
+ "prototype": {
2604
+ "activeByDefault": false
2605
+ },
2606
+ "comments": []
2607
+ }
2608
+ ],
2609
+ "readmodels": [],
2610
+ "screens": [],
2611
+ "screenImages": [],
2612
+ "screenLayouts": [],
2613
+ "processors": [],
2614
+ "tables": [],
2615
+ "specifications": [],
2616
+ "storylines": [],
2617
+ "chapter": "Understanding Eventsourcing",
2618
+ "codeGen": {},
2619
+ "notes": [],
2620
+ "comments": [],
2621
+ "aggregates": []
2622
+ }
2623
+ ],
2624
+ "flows": [],
2625
+ "aggregates": [],
2626
+ "actors": [],
2627
+ "context": "Understanding Eventsourcing",
2628
+ "sliceGroups": [],
2629
+ "sliceImages": [],
2630
+ "sliceLayouts": []
2631
+ }