Example 1

In these examples, we will use time reporting to restructure data in different ways.

The structure of the input data:


In this example, the time transactions are in a flat structure:


You can do this by using manually created standard Java code in Java functions. The task is complicated and technically advanced. This is true if the output document requires a lot of nested loops with grouping and maybe summing, as in our next examples. The mapping is cluttered with technical functions such as AddToRecord, AddToArray, SortArray, CheckBreak, and GetFromArray.

The Restructure function does all these without the need for the user to create a single line of Java code. At runtime, all the processing is completed in a similar but more complex way. It is similar to solving the problem with a manually created Java code in the mapping.

See Restructure concepts.