Changes for page Exercises

Last modified by Carlijn Kokkeler on 2022/10/19 13:32

From version 16.1
edited by Carlijn Kokkeler
on 2022/10/19 12:30
Change comment: There is no comment for this version
To version 21.1
edited by Carlijn Kokkeler
on 2022/10/19 13:32
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -9,33 +9,43 @@
9 9  
10 10  == 2. Key concepts ==
11 11  
12 -This microlearning centers around understanding the concept data modeling in design.
12 +This microlearning centers around understanding the concept data modeling in design. Please note the following items for completing this exercise
13 +* Ensure to make a small Capture phase that draws the system CAPE and a message type "TransportOrder"
14 +* The system CAPE provides messages as JSON
13 13  
14 14  == 3. CDM, CDM & system message, message mapping ==
15 15  By following the steps below, you should gain a better understanding of the differences between CDM, CDM messages, and system messages.
16 16  
17 17  * Creating a CDM
18 - Please import the file Order.xsd in your CDM. The code for this file can be found in section 4. Code for xsd files.
20 + ** Please import the file Order.xsd in your CDM. The code for this file can be found in section 4. Code for xsd files.
19 19  * Creating a CDM message
20 - Now, go to your CDM message and select Order as root entity.
21 - Add all other entities and attributes from Order.xsd, which were imported into the CDM, to your CDM message definition.
22 + ** Now, go to your CDM message and select Order as root entity.
23 + ** Add all other entities and attributes from Order.xsd, which were imported into the CDM, to your CDM message definition.
22 22  * Creating a system message
23 - In one of your System messages, import the file TransportOrder.xsd. The code for this file can be found at the bottom of this page.
25 + ** In one of your System messages, import the file TransportOrder.xsd. The code for this file can be found in section 4. Code for xsd files.
24 24  * Creating a CDM message
25 - Select CreateOrder as root entity and add all other entities and attributes to your system definition.
27 + ** Select CreateOrder as root entity and add all other entities and attributes to your system definition.
26 26  * Complete message mapping
27 - Now that you have completed these steps, go to Message mapping and complete the mapping.
29 + ** Now that you have completed these steps, go to Message mapping and complete the mapping. Please add the following to the Design mapping
30 + *** Ensure to properly map the address type
31 + *** Ensure to properly document mappings where required
32 +* Update the CDM and CDM message and remove the housenumber attribute
33 + ** Update the mapping accordingly
34 +* Update the System and CDM message to set the country attributes as enumerations
35 + ** System message uses an ISO-2 standard for country code
36 + ** CDM message uses an ISO-3 standard for country code
37 +
28 28  
29 29  The solutions to these exercises can be found [[here>>doc:Main.eMagiz Academy.Use Cases.Data modeling in Design.Exercises.Solutions.WebHome||target="blank"]].
30 30  
31 31  == 4. Code for xsd files ==
32 -Code for Order.xsd:
42 +=== 4.1 Code for Order.xsd ===
33 33  {{code language="xml"}}
34 34  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
35 - xmlns="http://www.carlijnsplatform.com/ns/capetms/cdm/1.0/"
45 + xmlns="http://www.mappingexercises.com/ns/capetms/cdm/1.0/"
36 36   attributeFormDefault="unqualified"
37 37   elementFormDefault="qualified"
38 - targetNamespace="http://www.carlijnsplatform.com/ns/capetms/cdm/1.0/">
48 + targetNamespace="http://www.mappingexercises.com/ns/capetms/cdm/1.0/">
39 39   <xs:complexType name="Order">
40 40   <xs:sequence>
41 41   <xs:element name="Date" type="xs:dateTime"/>
... ... @@ -89,7 +89,7 @@
89 89  </xs:schema>
90 90  {{/code}}
91 91  
92 -Code for TransportOrder.xsd:
102 +=== 4.2 Code for TransportOrder.xsd ===
93 93  {{code language="xml"}}
94 94  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
95 95   xmlns="https://transportinc.nl/ns/tms/1.0/"