DataWeave – Tip #1

ICYMI: Tip number one will be about data existence check. There are often situations that nearly the same conditions need to be checked in every line. I have seen many transformations that were really long and complex. Reading them was not only difficult but a lot of repeatable conditional checks were made. Here I will show you an example that will evolve to a point where we can reuse everything that was possible. As a result, we should achieve more concise and readable transformations. MuleSoft is about to release new DataWeave, which is why my examples are both in 1.0 and 2.0.

Contract

Here is the input in XML format and the expected JSON result: https://goo.gl/XqZYBS #DataIntegration #ML

Subscribe To Newsletter

Sign up for my newsletter and get the latest technology news

2019 © Craig Brown PhD. All rights reserved.