Solutions

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

In this microlearning, we will educate you on what we mean when we talk about message definitions.

Should you have any questions, please contact academy@emagiz.com.

1. Prerequisites

  • Completion of the exercises from the Data modeling in Design use case.

2. Key concepts

This microlearning contains the solutions to the exercises from the Data modeling in Design use case.

3. CDM, CDM & system message, message mapping

  • Message format
    • To start with, make sure that the system message format is JSON:
       data-modeling-in-design-exercises--message-format.png
  • Creating a CDM
    • By importing the Order.xsd file, the CDM should result in the following:
       data-modeling-in-design-exercises--creating-a-CDM.png
  • Creating a CDM message
    • The CDM message data model should look like the following:
       data-modeling-in-design-exercises--creating-a-CDM-message-data-model.png
        The CDM message definition should look like the following:
       data-modeling-in-design-exercises--creating-a-CDM-message-definition.png
  • Creating a system message
    • By importing the TransportOrder.xsd file, the system message data model should result in the following:
       data-modeling-in-design-exercises--creating-a-system-message-data-model.png
    • The system message definition should look like the following:
       data-modeling-in-design-exercises--creating-a-system-message-definition.png
  • Complete message mapping
    • The completed message mapping should look like the following:
    • Top of the model:
       data-modeling-in-design-exercises--complete-message-mapping-first-part.png
    • Bottom of the model:
       data-modeling-in-design-exercises--complete-message-mapping-second-part.png
        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:
       data-modeling-in-design-exercises--complete-message-mapping-note.png
  • Update the CDM and CDM message and remove the housenumber attribute
    • The attribute 'StreetNumber' should be removed from the entities 'PickupAddress' and 'DeliveryAddress' in the CDM:
       data-modeling-in-design-exercises--update-CDM-streetnumber.png
  • Update the System and CDM message to set the country attributes as enumerations
    • 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.
       data-modeling-in-design-exercises--update-country-enumeration.png

4. Key takeaways

  • The CDM holds all entities and attributes that are relevant within the context of your complete integration landscape.
  • The CDM message is tailor-made for a specific piece of data and only holds the entities and attributes relevant for that piece of data.
  • A system message is specific to a system.

5. Suggested Additional Readings

If you are interested in this topic and want more information on it please read the help text provided by eMagiz.