Last modified by Eva Torken on 2024/03/01 13:30

Hide last authors
eMagiz 27.1 1 {{container}}
2 {{container layoutStyle="columns"}}(((
Erik Bakker 31.1 3 With this exercise, we continue our journey into the eMagiz platform. This exercise will show you how to add transformation logic to your transformation in the Create phase (and a bit in Design).
eMagiz 1.1 4
Erik Bakker 12.1 5 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]].
eMagiz 1.1 6
7 == 1. Prerequisites ==
8
eMagiz 27.1 9 * Completed all previous exercises of the Crash course Platform
10 * Completed all previous microlearnings of the Crash course Platform
eMagiz 1.1 11
eMagiz 27.1 12 == 2. Exercise ==
eMagiz 1.1 13
Erik Bakker 29.1 14 In this exercise, please make the following changes to the system message of the TMS system:
15 * Change dataType of the attribute called "OrderDate" to **date**
16 * Add an attribute called "OrderReference" on the Order entity
eMagiz 1.1 17
Erik Bakker 29.1 18 And the following changes to the transformation from CDM to TMS:
Erik Bakker 33.1 19 * Make sure that the "OrderReference" attribute is filled with the constant value of **fixed-54321**
Erik Bakker 29.1 20 * Make sure that the "OrderID" is filled with the input value from the CDM but also make sure that when there is no input value a constant with the value **except-12345** is filled in
21 * Make sure that the incoming "Date" value is properly transformed from a dateTime value to a date value to prevent validation errors on the "OrderDate" attribute
Erik Bakker 34.1 22 * Add the following custom Xpath for the "Country" attribute under "Order_PickupAddress/Address" and "Order_DeliveryAddress/Address"
23 ** if (Country = 'NL') then 'NL' else 'FR'
Erik Bakker 29.1 24
eMagiz 27.1 25 == 3. Solution ==
eMagiz 1.1 26
eMagiz 27.1 27 In this short movie, you will find the workout of this exercise. Take a moment to review this one and compare it to your solution.
eMagiz 1.1 28
Eva Torken 36.1 29 {{video attachment="crashcourse-platform-create-transformations.mp4" reference="Main.Videos.Microlearning.WebHome"/}}
Erik Bakker 30.1 30
eMagiz 27.1 31 )))((({{toc/}}))){{/container}}
32 {{/container}}