Exercises

Version 8.1 by Carlijn Kokkeler on 2022/10/19 16:25

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

  • Basic knowledge of the eMagiz platform
  • Completion of the exercises from the Data modeling in Design use case.

2. Key concepts

This microlearning centers around understanding the concept of transformations. Please note that these are follow-up exercises from the Data modeling in Design exercises, which can be found here.

3. Transformations in Create

By following the steps below, you should gain a better understanding of transformations.

  • Enumeration value mapping
    • CDM message uses an ISO-3 standard for country code. Add an enumeration for the attribute Country according to this standard.
    • System message uses an ISO-2 standard for country code. Add an enumeration for the attribute Country according to this standard.
  • Boolean value mapping
    • Make sure that, in case PackageUnit in your CDM message has the value 'yes', the Unit value in your system message is 'COLLI'. If the PackageUnit has value 'no', the Unit value is 'BOX'. Hint: you might need to change an attribute data type.
  • Fixed value
    • Add a fixed value to the attribute 'Type' from the entity 'Address'. Please carefully look at the desired value(s).
  • If exists
    • Make sure that a Description attribute is only generated if a description exists.
  • XPath TBD

The solutions to these exercises can be found here.

5. Key takeaways

  • Enumeration values can be added in Create in CDM message and system message.
  • Filters for attributes can be added in Create in Transformation.

6. Suggested Additional Readings

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