Wiki source code of Exercise - Create transformations
Last modified by Eva Torken on 2024/03/01 13:30
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{container}} | ||
2 | {{container layoutStyle="columns"}}((( | ||
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). | ||
4 | |||
5 | Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]]. | ||
6 | |||
7 | == 1. Prerequisites == | ||
8 | |||
9 | * Completed all previous exercises of the Crash course Platform | ||
10 | * Completed all previous microlearnings of the Crash course Platform | ||
11 | |||
12 | == 2. Exercise == | ||
13 | |||
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 | ||
17 | |||
18 | And the following changes to the transformation from CDM to TMS: | ||
19 | * Make sure that the "OrderReference" attribute is filled with the constant value of **fixed-54321** | ||
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 | ||
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' | ||
24 | |||
25 | == 3. Solution == | ||
26 | |||
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. | ||
28 | |||
29 | {{video attachment="crashcourse-platform-create-transformations.mp4" reference="Main.Videos.Microlearning.WebHome"/}} | ||
30 | |||
31 | )))((({{toc/}}))){{/container}} | ||
32 | {{/container}} |