Changes for page Solutions
Last modified by Carlijn Kokkeler on 2022/10/19 13:24
From version 6.1
edited by Carlijn Kokkeler
on 2022/10/19 12:24
on 2022/10/19 12:24
Change comment:
There is no comment for this version
To version 8.1
edited by Carlijn Kokkeler
on 2022/10/19 13:24
on 2022/10/19 13:24
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -12,27 +12,36 @@ 12 12 This microlearning contains the solutions to the [[exercises>>doc:Main.eMagiz Academy.Use Cases.Data modeling in Design.Exercises.WebHome||target="blank"]] from the Data modeling in Design use case. 13 13 14 14 == 3. CDM, CDM & system message, message mapping == 15 +* Message format 16 +** To start with, make sure that the system message format is JSON: 17 + [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--message-format.png]] 15 15 * Creating a CDM 16 - 19 +** By importing the Order.xsd file, the CDM should result in the following: 17 17 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--creating-a-CDM.png]] 18 18 * Creating a CDM message 19 - 22 +** The CDM message data model should look like the following: 20 20 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--creating-a-CDM-message-data-model.png]] 21 21 The CDM message definition should look like the following: 22 22 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--creating-a-CDM-message-definition.png]] 23 23 * Creating a system message 24 - 27 +** By importing the TransportOrder.xsd file, the system message data model should result in the following: 25 25 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--creating-a-system-message-data-model.png]] 26 - 29 +** The system message definition should look like the following: 27 27 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--creating-a-system-message-definition.png]] 28 28 * Complete message mapping 29 - 30 - 32 +** The completed message mapping should look like the following: 33 +** Top of the model: 31 31 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--complete-message-mapping-first-part.png]] 32 - 35 +** Bottom of the model: 33 33 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--complete-message-mapping-second-part.png]] 34 - As can be seen, the PickupAddress and the DeliveryAddress should both be mapped to Address. The attribute 'Type' of Address can be set as mapped. The value can be either 'pickupaddress' or 'deliveryaddress', depending on the type of address that is applicable. This information can be added as a note: 37 + As can be seen, the PickupAddress and the DeliveryAddress should both be mapped to Address. The attribute 'Type' of Address can be set as mapped. The value can be either 'pickupaddress' or 'deliveryaddress', depending on the type of address that is applicable. This information can be added as a note to the Type attribute: 35 35 [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--complete-message-mapping-note.png]] 39 +* Update the CDM and CDM message and remove the housenumber attribute 40 +** The attribute 'StreetNumber' should be removed from the entities 'PickupAddress' and 'DeliveryAddress' in the CDM: 41 + [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--update-CDM-streetnumber.png]] 42 +* Update the System and CDM message to set the country attributes as enumerations 43 +** In your system and CDM message, change the data type of the attribute 'Country' to 'Enumeration'. For now, the enumeration cannot be edited yet. This can be done later on in the Create phase. 44 + [[image:Main.Images.Usecase.WebHome@data-modeling-in-design-exercises--update-country-enumeration.png]] 36 36 37 37 == 4. Key takeaways == 38 38