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